InputType
public enum InputType
The input type for a given
-
Does not apply formatting or constraints.
FormatTextFieldwill always be valid.Declaration
Swift
case none
-
Validates an email address.
Note
Does not constrain text in theFormatTextField. But will validate to see if the text is in fact an email. For insance a user could type an email of👹asdf 2424.asdf.000
, but that would have anisValidfield on theFormatTextFieldas false.Declaration
Swift
case email
-
Constrains text to an 10 digit phone number.
Will be in the format (###) ###-####. For instance, if the phone number was 2018675309 it would be formatted as (201) 867-5309.
Declaration
Swift
case phone
-
Formats the text field’s text as a currency using commas.
Will be in the format of <
currencySymbol>##,###. For instance, if the currency symbol is$
and the amount is 9300. The text will look like$9,300. Will be valid if the the text is all numbers and has a length greater than 0. Will be valid if all the digits are numbers and it is 10 characters long.Declaration
Swift
case currency(currencySymbol: String)
InputType Enumeration Reference