From 04d2a7231cc0bb455a57612980703473cb81cb52 Mon Sep 17 00:00:00 2001 From: Abdullah Tarek <63722580+AbdallaTarek@users.noreply.github.com> Date: Mon, 14 Feb 2022 13:03:06 +0200 Subject: [PATCH] Update OTPFieldView.swift --- OTPFieldView/OTPFieldView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OTPFieldView/OTPFieldView.swift b/OTPFieldView/OTPFieldView.swift index bcee25d..dffee50 100644 --- a/OTPFieldView/OTPFieldView.swift +++ b/OTPFieldView/OTPFieldView.swift @@ -50,6 +50,7 @@ import UIKit case numeric case alphabet case alphaNumeric + case ascii } @objc public class OTPFieldView: UIView { @@ -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