GeneralUITextField
class GeneralUITextField: UITextField
This type was created to ensure that all of the UITextField objects are created consistently. This class allows the developer to easily apply a ‘theme’ across all of the GeneralUITextField objects
-
Customize appearance of the
UITextFieldobject when this function is called. The theme enforces the background, placeholder text, and typed in text colors. Furthermore, a specific font is applied to the text that appears in thisUITextField. Background Color is set toUIColor.CHARCOAL. Placeholder Text Color is set toUIColor.CREME. Text Color is set toUIColor.WHITE. Font is set toUIFont.TEXTFIELD. This will ensure that allGeneralUITextFieldobjects will have the same appearance.Declaration
Swift
override func awakeFromNib()
View on GitHub
GeneralUITextField Class Reference