Latest 2.0.2
Homepage https://github.com/freesuraj/SPPatternLock
License MIT
Platforms ios 9.0
Authors

CocoaPods Compatible
Carthage Compatible
Platform
Twitter
GitHub stars
GitHub forks

Pattern Lock for iOS

Revamped PatternLock for iOS written in Swift3.

ScreenShot

  • 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

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

GitHub followers

Latest podspec

{
    "name": "SPPatternLock",
    "version": "2.0.2",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "Simple and elegant Pattern Lock for iOS",
    "social_media_url": "http://twitter.com/iosCook",
    "homepage": "https://github.com/freesuraj/SPPatternLock",
    "authors": {
        "Suraj Pathak": "[email protected]"
    },
    "source": {
        "git": "https://github.com/freesuraj/SPPatternLock.git",
        "tag": "2.0.2"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "Sources/*swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This