SPPatternLock 2.0.2

SPPatternLock 2.0.2

测试已测试
Lang语言 SwiftSwift
许可 MIT
发布最后发布2017年4月
SwiftSwift 版本3.0
SPM支持 SPM

Suraj 维护。



用于 iOS 的图案锁

重新设计的使用 Swift3 编写的用于 iOS 的图案锁。

ScreenShot

  • 无图形或图像
  • 所有颜色和大小均可自定义
  • 可以启用封闭型(复杂类型)图案
  • 支持 iPhone 和 iPad
  • 易于引入和使用

初始化

        /**
     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