Skip to content

b4nt0/mobile-security-no-screenshot-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prevent Screenshots on iOS

This is the simplest example of utilizing the ScreenshotPreventing-iOS library to prevent screenshots on iOS in a SwiftUI app.

Usage

  1. Clone this repository

  2. Fetch the Swift Package Manager dependencies

  3. Build and run the sample app

How it works

This example uses ScreenshotPreventing-iOS API with just one line of code: in ContentView.swift the line responsible for screenshot protection is:

.screenshotProtected(isProtected: preventScreenshot)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages