Skip to content

ScreenshotSecurity - it's just a view that can help you hide private conent during screenshot or screen record

License

Notifications You must be signed in to change notification settings

Madara2hor/ScreenshotSecurity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScreenshotSecurity

Swift5 Platform iOS License: MIT SPM Compatible

ScreenshotSecurity - it's just a view that can help you hide private conent during screenshot or screen record

How to use

UIKit

final class CredicCardViewController: UIViewController {
    ...
    let screenshotSecureView = ScreenshotSecureView()
    let creditCardNumber = UITextField()
    let blurView = BlurView()
    ... 
    private func setupScreenshotSecureView() {
        screenshotSecureView.viewToProtect = creditCardNumber
        /// > NOTE: `viewToShow` is optional, so you free to not use it - anyway, during screenshot or screen record `viewToProtect` will be hidden 
        screenshotSecureView.viewToShow = blurView
    }
    ...
}

SwiftUI

struct CredicCardView: View {
    ...
    var body: some View {
        CreditCardField()
            .screenshotSecure(viewToShow: BlurView())
    }
}

Requirements

  • Swift 5.0
  • iOS 15.0

Installation

SPM

dependencies: [
    .package(
        url: "https://gitlab.com/Madara2hor/ScreenshotSecurity", 
        .upToNextMajor(from: "1.0.0")
    )
]

License

ScreenshotSecurity is distributed under the MIT License.

About

ScreenshotSecurity - it's just a view that can help you hide private conent during screenshot or screen record

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages