OTPTextView lets you manage OTP code very conveniently
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
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
let myOTPTextView = OTPTextView(frame:CGRect(x: 10, y: 400, width: 300, height: 50))
view.addSubview(myOTPTextView)
print(myOTPTextView.getNumber())
XCode 11 > File > Swift Packages > Add Package Dependency , copy and paste the link there and use it.
https://github.com/ehsanomid/OTPTextView.git
pod 'OTPTextView'
Ehsan Omid
OTPTextView is available under the MIT license. See the LICENSE file for more info.