ValidatedTextView

open class ValidatedTextView: BaseUITextView

ValidatedTextView is subclass of BaseUITextView with extra proporties to validate text input.

  • Validity msg for invalid input text. - Default text is ‘Invalid’ The msg can be a key of SyncEngine with a prefix ’#’

    Declaration

    Swift

    @IBInspectable open var validityMsg:String
  • Flag for whether the input is valid or not.

    Declaration

    Swift

    open var isValid:Bool
  • Overridden property to get text changes.

    Declaration

    Swift

    open override var text: String!
  • Required constructor implemented.

    Declaration

    Swift

    required public init?(coder aDecoder: NSCoder)
  • Overridden method to setup/ initialize components.

    Declaration

    Swift

    open override func awakeFromNib()
  • Overridden methed to update layout.

    Declaration

    Swift

    open override func layoutSubviews()
  • Validats for an empty text

    Returns

    Bool flag for a valid input.

    Declaration

    Swift

    open func isEmpty()->Bool

    Return Value

    Bool flag for a valid input.