-
Notifications
You must be signed in to change notification settings - Fork 540
Open
Description
I am trying to set the font for error label, but it is always taking the title font. SkyFloatingLabelTextField creates error label with titleFont. Setting textfield.errorLabel.font = UIFont.systemFont(ofSize: 12.0) is not working. It updates only when i update titleFont but I want to have different font size for title and error label.
// SkyFloatingLabelTextField.swift
fileprivate func createErrorLabel() {
let errorLabel = UILabel()
errorLabel.autoresizingMask = [.flexibleWidth, .flexibleHeight]
errorLabel.font = titleFont
errorLabel.alpha = 0.0
errorLabel.textColor = errorColor
addSubview(errorLabel)
self.errorLabel = errorLabel
}
Xcode Version: 13.3.1
SkyFloatingLabelTextField Version: 4.0
Metadata
Metadata
Assignees
Labels
No labels