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 UITextField object 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 this UITextField. Background Color is set to UIColor.CHARCOAL. Placeholder Text Color is set to UIColor.CREME. Text Color is set to UIColor.WHITE. Font is set to UIFont.TEXTFIELD. This will ensure that all GeneralUITextField objects will have the same appearance.

    Declaration

    Swift

    override func awakeFromNib()