SMIFormTextInput

Objective-C

@protocol SMIFormTextInput <SMIFormInput>

Swift

protocol FormTextInput : FormInput

Represents a text input on a form.

  • The type of text expected for this input.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) SMIFormTextInputType textInputType;

    Swift

    var textInputType: FormTextInputType? { get }
  • The maximum characters this text input accepts.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger maximumCharacterCount;

    Swift

    var maximumCharacterCount: UInt { get }
  • Placeholder text displayed to users.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSString *placeholder;

    Swift

    var placeholder: String? { get }
  • Text which is prefixed to the final output.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) NSString *prefixText;

    Swift

    var prefixText: String? { get }
  • The content type for this input.

    See

    UITextContentType.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) UITextContentType textContentType;

    Swift

    var textContentType: UITextContentType? { get }
  • The suggested keyboard type which should be used to collect input from the user.

    See

    UIKeyboardType

    Declaration

    Objective-C

    @property (nonatomic, readonly) UIKeyboardType keyboardType;

    Swift

    var keyboardType: UIKeyboardType { get }
  • The current text value for this input.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSString *value;

    Swift

    var value: String? { get set }