Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexruperez/LaunchScreenSnapshot
Protects sensitive data in your app snapshot.
https://github.com/alexruperez/LaunchScreenSnapshot
background carthage cocoapods foreground ios launch-screen protection sensitive-data snapshot swift
Last synced: 3 months ago
JSON representation
Protects sensitive data in your app snapshot.
- Host: GitHub
- URL: https://github.com/alexruperez/LaunchScreenSnapshot
- Owner: alexruperez
- License: mit
- Created: 2017-05-19T17:53:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-15T09:29:17.000Z (over 6 years ago)
- Last Synced: 2024-10-31T15:44:17.633Z (4 months ago)
- Topics: background, carthage, cocoapods, foreground, ios, launch-screen, protection, sensitive-data, snapshot, swift
- Language: Swift
- Homepage:
- Size: 1.19 MB
- Stars: 207
- Watchers: 5
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# LaunchScreenSnapshot
[](http://twitter.com/alexruperez)
[](http://cocoapods.org/pods/LaunchScreenSnapshot)
[](http://cocoapods.org/pods/LaunchScreenSnapshot)
[](http://cocoapods.org/pods/LaunchScreenSnapshot)
[](https://github.com/Carthage/Carthage)
[](https://github.com/apple/swift-package-manager)
[](https://travis-ci.org/alexruperez/LaunchScreenSnapshot)
[](https://codecov.io/gh/alexruperez/LaunchScreenSnapshot)
[](https://codebeat.co/projects/github-com-alexruperez-launchscreensnapshot-master)*LaunchScreenSnapshot* protects sensitive data in your app snapshot.

## Installation
LaunchScreenSnapshot is available through [*CocoaPods*](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'LaunchScreenSnapshot'
```#### Or you can install it with [*Carthage*](https://github.com/Carthage/Carthage):
```ogdl
github "alexruperez/LaunchScreenSnapshot"
```#### Or install it with [*Swift Package Manager*](https://swift.org/package-manager/):
```swift
dependencies: [
.Package(url: "https://github.com/alexruperez/LaunchScreenSnapshot.git")
]
```## Usage
#### Protect your app snapshot:
```swift
LaunchScreenSnapshot.protect()
```#### Unprotect your app snapshot:
```swift
LaunchScreenSnapshot.unprotect()
```### Advanced usage
#### Shared instance:
```swift
let launchScreenSnapshot = LaunchScreenSnapshot.shared
```#### Custom built:
```swift
let launchScreenSnapshot = LaunchScreenSnapshot(application: UIApplication, notificationCenter: NotificationCenter, bundle: Bundle)
```#### Provided parameters:
```swift
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](https://github.com/alexruperez), [email protected]
## License
*LaunchScreenSnapshot* is available under the MIT license. See the LICENSE file for more info.