LaunchScreenSnapshot
LaunchScreenSnapshot protects sensitive data in your app snapshot.
Installation
LaunchScreenSnapshot is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'LaunchScreenSnapshot'
Carthage:
Or you can install it withgithub "alexruperez/LaunchScreenSnapshot"
Swift Package Manager:
Or install it withdependencies: [
.Package(url: "https://github.com/alexruperez/LaunchScreenSnapshot.git")
]
Usage
Protect your app snapshot:
LaunchScreenSnapshot.protect()
Unprotect your app snapshot:
LaunchScreenSnapshot.unprotect()
Advanced usage
Shared instance:
let launchScreenSnapshot = LaunchScreenSnapshot.shared
Custom built:
let launchScreenSnapshot = LaunchScreenSnapshot(application: UIApplication, notificationCenter: NotificationCenter, bundle: Bundle)
Provided parameters:
let restoreAnimationOptions = LaunchScreenSnapshot.Animation(duration: TimeInterval, delay: TimeInterval, dampingRatio: CGFloat, velocity: CGFloat, options: UIViewAnimationOptions)
launchScreenSnapshot.protect(with: UIView?, trigger: LaunchScreenSnapshot.Trigger, animation: restoreAnimationOptions, force: Bool)
Etc.
- Contributions are very welcome.
- Attribution is appreciated (let's spread the word!), but not mandatory.
Authors
alexruperez, [email protected]
License
LaunchScreenSnapshot is available under the MIT license. See the LICENSE file for more info.