Git Product home page Git Product logo

snapshotsafeview's Introduction

Hi

My name is Ilya and i'm software developer :)

๐Ÿ”ง Tools

๐Ÿ“ˆ GitHub Stats

snapshotsafeview's People

Contributors

ngagarinov avatar stampoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

snapshotsafeview's Issues

Support for React Native

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!

Cannot reproduce React Native example

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?

  • I've tried both an iOS 14 and 16 simulator
  • Does the package work when using the simulator's screenshot button?

Simulator Screen Shot - iPhone 14 - 2023-03-01 at 20 14 23

CocoaPods installation issue

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?

How I can apply this to any View from storyboard?

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()
    }
}

Simulator Screen Shot - iPhone 14 Pro - 2022-09-19 at 17 36 39

how to disable?

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?

A second keyboard appears when there is a TextField inside the container

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.

How to connect with SwiftUi?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.