Otp view swift package implemented with Swift & SwiftUI.
Create an instance It supports AutoLayout completely.
@State var otpCode: String = ""
@State var otpCodeLength: Int = 6
@State var textColor = .black
@State var textSize = CGFloat(27)
var body: some View {
HStack {
//OTPTextField { otp, completionHandler in }
OtpView_SwiftUI(otpCode: $otpCode, otpCodeLengh: $otpCodeLength, textColor: $textColor, textSize: $textSize)
}
}
iOS 15.0+ Swift 5.5+