Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions OTPFieldView/OTPFieldView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import UIKit
case numeric
case alphabet
case alphaNumeric
case ascii
}

@objc public class OTPFieldView: UIView {
Expand Down Expand Up @@ -137,6 +138,8 @@ import UIKit
otpField.keyboardType = .alphabet
case .alphaNumeric:
otpField.keyboardType = .namePhonePad
case .ascii:
otpField.keyboardType = .asciiCapableNumberPad
}

// Set the border values if needed
Expand Down