Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/freesuraj/sppatternlock
A Pattern Lock for iOS similar to the one in Android
https://github.com/freesuraj/sppatternlock
lockscreen pattern-lock swift swift3
Last synced: 2 days ago
JSON representation
A Pattern Lock for iOS similar to the one in Android
- Host: GitHub
- URL: https://github.com/freesuraj/sppatternlock
- Owner: freesuraj
- License: mit
- Created: 2012-12-18T07:18:13.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-05-03T20:44:33.000Z (over 7 years ago)
- Last Synced: 2024-09-24T20:34:24.219Z (2 days ago)
- Topics: lockscreen, pattern-lock, swift, swift3
- Language: Swift
- Size: 120 KB
- Stars: 167
- Watchers: 17
- Forks: 47
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/SPPatternLock.svg)](http://cocoadocs.org/docsets/SPPatternLock/)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Platform](https://img.shields.io/cocoapods/p/SPPatternLock.svg?style=flat)](http://cocoadocs.org/docsets/SPPatternLock)
[![Twitter](https://img.shields.io/badge/[email protected]?style=flat)](http://twitter.com/iosCook)
[![GitHub stars](https://img.shields.io/github/stars/freesuraj/patternlock.svg?style=social&label=Star)](https://github.com/freesuraj/SPPatternlock)
[![GitHub forks](https://img.shields.io/github/forks/freesuraj/patternlock.svg?style=social&label=Fork)](https://github.com/freesuraj/SPPatternlock)Pattern Lock for iOS
========================
Revamped PatternLock for iOS written in Swift3.![ScreenShot](https://github.com/freesuraj/SPPatternLock/blob/master/Examples/patternLock.png?raw=true)
* **no graphics or images**
* **all colors and sizes are customizable**
* **can enable closed-type(complex type) patterns**
* **support for both iPhone and iPad**
* **Easy to bring in and use**### CocoaPods
pod 'SPPatternLock'
### Initialization```swift
/**
Initializes the main lock screen
- parameter frame: `CGRect` where the screen will be drawn
- parameter size: Size of the lock screen. It will create grids of size X size. Default value is 3
- parameter allowClosedPattern: If set to `true`, it allows for complicated pattern. Otherwise a circle can't be used twice for a pattern
- parameter config: Configuration for colors and line width, etc
- parameter handler: Callback to receive the user pattern
- returns: Returns the Lock screen
*/
convenience init(frame: CGRect, size: Int = 3, allowClosedPattern: Bool = true, config: Config = Config(), handler: PatternHandlerBlock? = nil)```
### About
If you found this little tool useful, I'd love to hear about it. You can also follow me on Twitter at [@iosCook](https://twitter.com/ioscook)
[![GitHub followers](https://img.shields.io/github/followers/freesuraj.svg?style=social&label=Follow)](https://github.com/freesuraj)