app开发者平台在数字化时代的重要性与发展趋势解析
593
2022-10-23
LaunchScreenSnapshot:保护应用程序快照中的敏感数据
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'
Or you can install it with Carthage:
github "alexruperez/LaunchScreenSnapshot"
Or install it with Swift Package Manager:
dependencies: [ .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, contact@alexruperez.com
License
LaunchScreenSnapshot is available under the MIT license. See the LICENSE file for more info.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~