FUITitleFormView
open class FUITitleFormView : FUIFormCellContentView<FUITextField, FUIControlState, FUIText>
extension FUITitleFormView: UITextFieldDelegate
The content view of an FUITitleFormCollectionViewCell
.
-
The value type is String.
Declaration
Swift
public typealias ValueType = String
-
Indicates if the cell is read-only or not.
The default is
false
.Declaration
Swift
public var isReadOnly: Bool { get set }
-
The value for FUITitleFormView is the text of the Title.
Declaration
Swift
public var value: String { get set }
-
Indicates whether this title is editable or not. The default is
true
.Declaration
Swift
public var isEditable: Bool { get set }
-
Implementation of the change handler. This is invoked on changes to the
value
property.Declaration
Swift
public var onChangeHandler: ((String) -> Void)?
-
isEnabled
andisEditable
are in sync.Declaration
Swift
public override var isEnabled: Bool { get set }
-
This is the maximum length of the title text if
maxTitleTextLength
is greater than 0. If the text length reaches this limit, the user cannot enter more text. Note: If the user pastes a string and the length plus the current text length is greater than the limit, the insert is rejected. Partial strings are not accepted in the text field. The default value formaxTitleTextLength
is0
, which means no limit.Declaration
Swift
public var maxTitleTextLength: Int
-
The type of the keyboard being used when the cell is in input mode.
Declaration
Swift
public var keyboardType: UIKeyboardType { get set }
-
If
isTrackingLiveChanges == true
, thendidChangeValue
function ofonChangeHandler
, will be invoked for every letter entered.Otherwise,
onChangeHandler
will be invoked only after the user taps the Done key, or the field resigns as first responder.Declaration
Swift
public var isTrackingLiveChanges: Bool { get set }
-
The placeholder text for the title text field.
Declaration
Swift
@IBInspectable public var placeholderText: String? { get set }
-
Declaration
Swift
open override func calculateLayout(_ targetSize: CGSize)
-
Undocumented
Declaration
Swift
open override func systemLayoutSizeFitting(_ targetSize: CGSize, withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority, verticalFittingPriority: UILayoutPriority) -> CGSize
-
Declaration
Swift
open override func refreshAttributedStrings()
-
Undocumented
Declaration
Swift
open override var tintState: FUIControlState { get set }
-
Undocumented
Declaration
Swift
public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool