Git Product home page Git Product logo

launchscreensnapshot's Introduction

LaunchScreenSnapshot

Twitter Version License Platform Carthage compatible Swift Package Manager Compatible Build Status Code Coverage codebeat badge

LaunchScreenSnapshot protects sensitive data in your app snapshot.

LaunchScreenSnapshot

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, [email protected]

License

LaunchScreenSnapshot is available under the MIT license. See the LICENSE file for more info.

launchscreensnapshot's People

Contributors

alexruperez avatar mofneko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

launchscreensnapshot's Issues

Reliability issues

I was trying out this repo as I was implementing a solution similar to this, but I was hitting a problem on swapping in my secure view (~1 out of 10 times, when going to the carousel view, the secure view was not swapping in). I was stress testing this pod (nice simple interface, by the way), and noticed that this has the same issue: every once in a while, when I double tap home, the screen is not protected.

This is on an iPhone 6 running iOS 11.2. Has anyone else noticed this? I have other workarounds, but none are as desirable the WillResignActive/DidBecomeActive mechanism, as it allows precise control.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.