My name is Ilya and i'm software developer :)
stampoo / snapshotsafeview Goto Github PK
View Code? Open in Web Editor NEWUsed for hide view from system screenshots and video recording
License: MIT License
Used for hide view from system screenshots and video recording
License: MIT License
Hi,
I think this would be a great solution to prevent screenshots on React Native apps.
I tried to integrate it by unfortunately, my swift and Objective C knowledge is very limited.
In case I could help on the React Native side implementation, count with me!
I've been trying to test out the React Native example of this package.
I downloaded the React-Native-example
branch from https://github.com/Stampoo/SnapshotSafeView/tree/React-Native-example
I initially had the following error when performing pod install
[!] Failed to load 'SnapshotSafeView' podspec:
[!] Invalid `SnapshotSafeView.podspec` file: syntax error, unexpected '<'
<!DOCTYPE html>
I got around this by commenting out the following line from the Podfile
pod 'SnapshotSafeView', :podspec => 'https://github.com/Stampoo/SnapshotSafeView'
I don't believe this line is necessary, because the package is being installed with Swift Package Manager not CocoaPods.
I then ran the app on a simulator using npm run start
and npm run ios
.
But when I take a screenshot I see the content inside the <SnapshotSafeView>
Are there any constraints that I should be aware of?
Hello.
I tried to add this to my project through CocoaPods -sadly, our project still depends on it- however it throws an error and a warning saying
The
SnapshotSafeViewpod failed to validate due to 1 error: - WARN | description: The description is equal to the summary. - ERROR | [iOS] File Patterns: The SnapshotSafeView (0.2.0) spec is empty (no source files, resources, resource_bundles, preserve paths, vendored_libraries, vendored_frameworks, dependencies, nor subspecs).
The line added to Podfile
is
pod 'SnapshotSafeView', :git => 'https://github.com/Stampoo/SnapshotSafeView.git', :tag => '0.2.0'
Then I added source code manually into project and it does the job perfectly. But I still want to separate it.
Can you help?
I found this lib that have used _UITextLayoutCanvasView
and _UITextFieldCanvasView
. That class is private api. If I use this lib in our app, can we pass the apple review?
I added one UIView in UIViewController (Please check the screenshot below)
Once a user tries to take a screenshot, that View should not appear in the screenshot. How I can do it? How I can apply your library/code to any specific view (UIView) ?
I tried the following code, from that code my View itself not showing in iPhone, once I run the code.
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var safeView1: UIView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
var hiddenFromScreenshotButtonController2 = ScreenshotProtectController(content: safeView1)
hiddenFromScreenshotButtonController2.setupContentAsHiddenInScreenshotMode()
}
}
I used the sdk for my flutter project.
hi
I cannot disable it after enabling
this is my code in swift
if friends.first?.isScreenshotDisabled == true {
self.tableView.setupAsHiddenFromSystemScreenshotsAndVideoRecordings()
} else {
}
how to disable?
Hi, I'm applying your solution to my project and I noticed that, using the TextField and interacting with it, a second keyboard appears behind the TextField keyboard. On dismissing the TextField keyboard, this second keyboard will be visible and allows you to interact with the ProtectiveContainer (in fact, when writing, a secure text appears on the screen). I tried calling resignFirstResponder() on the container at the same time I dismiss the TextField keyboard and the keyboard disappears, but the view seems to be disabled, preventing any interaction.
Can you please tell me how to use it in SwiftUi? do I need to just put the final class in the AppDelegate? I'm new, thanks
Hi, Ive created a demo project with React Native, I got the component working but if I put it on a view or a button I am unable to interact with said component
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.