MDCMultilineTextField

@interface MDCMultilineTextField
    : UIView <MDCTextInput, MDCMultilineTextInput, MDCElevatable,
              MDCElevationOverriding>

Material Design themed mutiline text field (multiline text input). https://www.google.com/design/spec/components/text-fields.html#text-fields-multi-line-text-field

  • A mirror of the same property that already exists on UITextField, UITextView, and UILabel.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL adjustsFontForContentSizeCategory;
  • Should the text field grow vertically as new lines are added.

    Default is YES.

    Note: Inherited from MDCMultilineTextInput protocol. Added here to declare Interface Builder support (IBInspectable).

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL expandsOnOverflow;
  • The delegate for changes to preferred content size.

    If using auto layout, it is not necessary to have a layout delegate.

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable)
        id<MDCMultilineTextInputLayoutDelegate>
            layoutDelegate;
  • An optional delegate for useful methods not included in UITextViewDelegate.

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable) id<MDCMultilineTextInputDelegate>
        multilineDelegate;
  • The text string of the placeholder label. Bringing convenience api found in UITextField to all MDCTextInputs. Maps to the .text of the placeholder label.

    Note: Inherited from MDCTextInput protocol. Added here to declare Interface Builder support (IBInspectable).

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *placeholder;
  • Insets used to calculate the spacing of subviews.

    Declaration

    Objective-C

    @property (readonly, assign, nonatomic) UIEdgeInsets textInsets;
  • Embedded textView. Can be set from storyboard or will be auto-created during initialization.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        MDCIntrinsicHeightTextView *textView;
  • A block that is invoked when the @c MDCMultilineTextField receives a call to @c traitCollectionDidChange:. The block is called after the call to the superclass.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) void (^)
        (MDCMultilineTextField *_Nonnull, UITraitCollection *_Nullable)
            traitCollectionDidChangeBlock;