Index

RBTextField.h

Classes


RBTextField

A single-line text input field.

Properties

The margin of space to provide around the text.
public textMargin UIEdgeInsets { get set }

The color of the placeholder text.
public placeholderColor UIColor? { get set }

The margin to apply to the left view.
public leftViewMargin UIEdgeInsets { get set }

The margin to apply to the right view.
public rightViewMargin UIEdgeInsets { get set }

Sets the leftView to an RBImageView with the give image. If nil is provided this removes any previously assigned RBImageView on the leftView. Setting nil only removes the RBImageView previously assigned if leftView contains another UIView it will NOT be set to nil.
public leftViewImage UIImage? { get set }

Sets the rightView to an RBImageView with the give image. If nil is provided this removes any previously assigned RBImageView on the rightView. Setting nil only removes the RBImageView previously assigned if rightView contains another UIView it will NOT be set to nil.
public rightViewImage UIImage? { get set }

Determines whether the control value will be updated live as text changes.
public shouldUpdateControlValueOnTextChange Bool { get }

Determines whether the text should be updated when the control value changes.
public shouldUpdateTextOnControlValueChange Bool { get }

Whether or not the field should allow the keyboard to open when it is tapped.
public shouldBeginEditing Bool { get }

Whether or not the field should allow the keyboard to close.
public shouldEndEditing Bool { get }

Whether or not the field should clear.
public shouldClear Bool { get }

Whether or not the field should return.
public shouldReturn Bool { get }

Functions

Whether or not to permit the user edit.
@param range : The range of the text that has been changed.
@param string : The string that the text has been changed to.
@returns Whether or not to permit the change.
- (BOOL)shouldChangeCharactersInRange:(NSRange)range replacementString:(nonnull NSString *)string;