Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paiv/security-container-ios
Lock screen UI pattern
https://github.com/paiv/security-container-ios
Last synced: about 10 hours ago
JSON representation
Lock screen UI pattern
- Host: GitHub
- URL: https://github.com/paiv/security-container-ios
- Owner: paiv
- License: mit
- Created: 2016-08-16T22:44:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T12:04:15.000Z (about 1 month ago)
- Last Synced: 2024-10-18T02:17:02.295Z (about 1 month ago)
- Language: Swift
- Homepage:
- Size: 247 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/funding.yml
- License: LICENSE
- Security: SecurityContainer/SecurityContainer.xcodeproj/project.pbxproj
Awesome Lists containing this project
README
SecurityContainer iOS
=====================Security Container implements lock screen UI pattern.
When in locked state, rest of the app is fully unloaded from memory.
Read here: https://paiv.github.io/blog/2016/08/18/security-container-ios.html
Using in your app
-----------------Demo app storyboard:
[](diagram.png)
Add to storyboard new `UIViewController` and change its class to `SecurityContainer`. Mark it as initial view controller.
Add two outgoing segues with custom class `SecuritySegue`: one with identifier `locked` leading to login, another with identifier `unlocked` to the rest of the app.
Note: when changing default class of an element in storyboard, be sure to set proper module.
When linking to framework project, add it to `Embedded Binaries` of your project.
Invoking security screen
------------------------Your view controllers now have access to optional property `securityContainer` and its two methods:
* `securityLock()` will navigate to `locked` segue
* `securityUnlock()` will navigate to `unlocked` segueSee [DemoApp](DemoApp) for example implementation.