FUITitleFormView
@MainActor
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
@MainActor public var isReadOnly: Bool { get set } -
The value for FUITitleFormView is the text of the Title.
Declaration
Swift
@MainActor public var value: String { get set } -
Indicates whether this title is editable or not.
The default value is
true.Declaration
Swift
@MainActor public var isEditable: Bool { get set } -
Implementation of the change handler. This is invoked on changes to the
valueproperty.Declaration
Swift
@MainActor public var onChangeHandler: ((String) -> Void)? -
isEnabledandisEditableare in sync.Declaration
Swift
@MainActor public override var isEnabled: Bool { get set } -
This is the maximum length of the title text if
maxTitleTextLengthis 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 formaxTitleTextLengthis0, which means no limit.Declaration
Swift
@MainActor public var maxTitleTextLength: Int -
The type of the keyboard being used when the cell is in input mode.
Declaration
Swift
@MainActor public var keyboardType: UIKeyboardType { get set } -
If
isTrackingLiveChanges == true, thendidChangeValuefunction ofonChangeHandler, will be invoked for every letter entered.Otherwise,
onChangeHandlerwill be invoked only after the user taps the Done key, or the field resigns as first responder.Declaration
Swift
@MainActor public var isTrackingLiveChanges: Bool { get set } -
The placeholder text for the title text field.
Declaration
Swift
@IBInspectable @MainActor public var placeholderText: String? { get set } -
Declaration
Swift
@MainActor open override func calculateLayout(_ targetSize: CGSize) -
Undocumented
Declaration
Swift
@MainActor open override func systemLayoutSizeFitting(_ targetSize: CGSize, withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority, verticalFittingPriority: UILayoutPriority) -> CGSize -
Declaration
Swift
@MainActor open override func refreshAttributedStrings() -
Undocumented
Declaration
Swift
@MainActor open override var tintState: FUIControlState { get set }
-
Undocumented
Declaration
Swift
@MainActor public func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool