From 5d18848f77433a57c889419c0b6af09e01ceb1b8 Mon Sep 17 00:00:00 2001 From: Ajaz Ahmed <72081378+AjazDev@users.noreply.github.com> Date: Tue, 29 Sep 2020 17:25:57 +0500 Subject: [PATCH] Update OTPFieldView.swift Added functionality to modify text color. --- OTPFieldView/OTPFieldView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OTPFieldView/OTPFieldView.swift b/OTPFieldView/OTPFieldView.swift index bcee25d..c6e6fdb 100644 --- a/OTPFieldView/OTPFieldView.swift +++ b/OTPFieldView/OTPFieldView.swift @@ -74,6 +74,8 @@ import UIKit public var defaultBorderColor: UIColor = UIColor.gray public var filledBorderColor: UIColor = UIColor.clear public var errorBorderColor: UIColor? + public var fieldTextColor: UIColor = UIColor.black + public weak var delegate: OTPFieldViewDelegate? @@ -128,6 +130,7 @@ import UIKit otpField.delegate = self otpField.tag = index + 1 otpField.font = fieldFont + otpField.textColor = fieldTextColor // Set input type for OTP fields switch otpInputType {