Custom UI Text Controls

  • Class overriding an UITextView in order to enable hexadecimal input only. It uses a delegate function to check entered text and allows 0~9, space and A~F characters only. Also disabled the autocompletion feature that turns 2 spaces into a dot plus space.

    See more

    Declaration

    Swift

    class HexEditUITextView : UITextView
    extension HexEditUITextView: UITextViewDelegate
  • Class overriding a UITextField in order to enable numeric input only…

    See more

    Declaration

    Swift

    class NumericUITextField : UITextField, UITextFieldDelegate
  • Class overriding a UITextView in order to hide the caret and cancel edit actions. Used for read-only text views with no default actions.

    See more

    Declaration

    Swift

    class NoCaretUITextView : UITextView
  • Class overriding a UITextField in order to hide the caret and cancel edit actions. Used for read-only text fields with no default actions.

    See more

    Declaration

    Swift

    class NoCaretUITextField : UITextField