Skip to content

An easy-to-use, customizable Android Pattern Lock view for iOS

License

Notifications You must be signed in to change notification settings

ilk33r/IOPatternLock

Repository files navigation

IOPatternLock

An easy-to-use, customizable Android Pattern Lock view for iOS
IOPatternLock

Specs

This library allows you to implement pattern locking mechanism in your app easily and quickly. It is very easy to use and there are plenty of customization options available to change the functionality and look-and-feel of this view to match your needs.

Installation

Cocoapods

The easiest way of installing IOPatternLock is via CocoaPods.

pod 'IOPatternLock', '~> 1.0.0'

Carthage

To integrate IOPatternLock into your Xcode project using Carthage, specify it in your Cartfile:

github "ilk33r/IOPatternLock" ~> 1.0.0

Run carthage update to build the framework and drag the built IOPatternLock.framework into your Xcode project.

Universal Library

You can download precompiled universal libraries on this page.

Usage

IOPatternLock

Delegate

You can implement IOPatternLockDelegate to use following methods.

Delegate methods that you can use:

- (void)ioPatternLockView:(IOPatternLockView *)patternLockView patternCompleted:(NSArray<NSNumber *> *)selectedPatterns;
- (void)ioPatternLockView:(IOPatternLockView *)patternLockView patternCompletedWithError:(NSError *)error;
func ioPatternLockView(_ patternLockView: IOPatternLockView, patternCompleted selectedPatterns: [NSNumber]);
func ioPatternLockView(_ patternLockView: IOPatternLockView, patternCompletedWithError error: Error);

License

IOPatternLock is released under the MIT license. See LICENSE for details.