Skip to content

a swift OTPTextView component which gets OTP CODE in separated UITextfields

License

Notifications You must be signed in to change notification settings

linkstreet/OTPTextView

 
 

Repository files navigation

OTPTextView

CI Status Version License Platform

OTPTextView lets you manage OTP code very conveniently

DEMO

Implementation

Open Wiki tap to see, you can use storyboard or implement it in your code! There is also an example project which you can see how to use OTPTextView

Take a glance

onErrorBorderColor
onEnterBoarderColor
onLeaveBoarderColor
onFilledBorderColor
onSuccessBoarderColor
onAllFilledBoarderColor
onEnterBorderWidth
onLeaveBorderWidth

cursorColor
underLineIndicator
isPasswordProtected
borderColor
placeHolderColor
indicatorColor
IndicatorGapeFromTop
middleGape
forceCompletion
callOnCompleted
AutoArrange
isBorderHidden
borderSize
BorderRadius
BlocksNo
fontSize
placeHolder
getFromClipBoardAndFill
flash
flashAll

Simple Implementation

let myOTPTextView = OTPTextView(frame:CGRect(x: 10, y: 400, width: 300, height: 50)) 
view.addSubview(myOTPTextView)
print(myOTPTextView.getNumber())

Installation

SWIFT PACKAGE MANAGER :: Easy Installation ( Xcode 11 )

XCode 11 > File > Swift Packages > Add Package Dependency , copy and paste the link there and use it.

https://github.com/ehsanomid/OTPTextView.git

POD

pod 'OTPTextView'

Author

Ehsan Omid

License

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

About

a swift OTPTextView component which gets OTP CODE in separated UITextfields

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 95.8%
  • Ruby 4.2%