Git Product home page Git Product logo

cvpasscodecontroller's Introduction

CVPasscodeController

A native looks passcode input interface.

Carthage compatible

Introduction

CVPasscodeController provide you with a easy way to achieve local authentication, which only requires you make little change in your project.

Screenshot

Features

  • Two interface style (dark / light).
  • Supports arbitrary digits.
  • Customizable interface strings.

Example

To run the example project, clone the repo, and build the example scheme.

Installation

CVPasscodeController is available through Carthage. To install it, simply add the following line to your Cartfile:

github "unixzii/CVPasscodeController"

Usage Guide

CVPasscodeController is the main class you will work on. Instantiate a CVPasscodeController object, pass a preferred style to its initializer.

CVPasscodeEvaluating is another important protocol you need to implement, it allow the controller evaluate the passcode. One thing need to be concerned is your evaluating process should not block the main thread, it should return quickly. Before returning the result, you can schedule something that will happen after user input a correct passcode. For more, see the example project.

Any strings appear on the interface can be customized, only thing you need to do is implement CVPasscodeInterfaceStringProviding protocol.

After all thing is done, just present it as a view controller.

License

The project is available under the MIT license. See the LICENSE file for more info.

cvpasscodecontroller's People

Contributors

unixzii avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.