测试已测试 | ✗ |
Lang语言 | SwiftSwift |
许可 | MIT |
发布最后发布 | 2017年4月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 Suraj 维护。
重新设计的使用 Swift3 编写的用于 iOS 的图案锁。
/**
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)
如果您觉得这个小工具有用,请告诉我。您也可以在我的推特上关注我 @iosCook