Skip to content

Repository files navigation

ASPinCodeField

ASPinCodeField is a UI Component that allows you to integrate a pin / digit code UI within your app.

Overview

Appareance

PinCode gif

Behind the scenes

As simple as: Whimsical ASPinCodeField

🔶 Requirements

  • iOS 9.0+
  • Swift 5.0

👨🏻‍💻 Usage

letpinCodeView=ASPinCodeField()
pinCodeView.delegate =self
pinCodeView.dataSource =self
pinCodeView.borderColor =UIColor.lightGray
pinCodeView.textColor =UIColor.black
pinCodeView.cornerRadius =4
pinCodeView.itemsSpacing =8
pinCodeView.textFont =.boldSystemFont(ofSize:20)

Delegate and DataSource

publicprotocolASPinCodeFieldDelegate:class{func pinCodeField(_ pinCodeField:ASPinCodeField, didChangeText text:String)}publicprotocolASPinCodeFieldDataSource:class{func numberOfDigits(in pinCodeField:ASPinCodeField)->Intfunc canPasteFromPasteBoard(_ pinCodeField:ASPinCodeField, pasteboard:String)->Bool}

Installation

CocoaPods

pod 'ASPinCodeField'

Carthage

github "Aymenworks/ASPinCodeField"

License

ASPinCodeField is released under the MIT license.

About

An UI Component that allows you to integrate a pin / digit code UI within your app.

Topics

Resources

Stars

9 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages