CHIOTPField icon indicating copy to clipboard operation
CHIOTPField copied to clipboard

Can not set textColor and Font for Label

Open Nodirbek-Khudoyberdiev opened this issue 2 years ago • 1 comments

Can not set textColor and Font for Label

Nodirbek-Khudoyberdiev avatar Jan 16 '23 12:01 Nodirbek-Khudoyberdiev

Can not set textColor and Font for Label

Solution:

// Add this code after setting up the OTP field and constraints
for (index, label) in otpField.labels.enumerated() {
    label.textColor = UIColor.blue
    label.font = UIFont.systemFont(ofSize: 30), weight: .bold)
}

RomanticD avatar Mar 11 '25 15:03 RomanticD