AreaFieldDelegate
@objc
public protocol AreaFieldDelegate : AnyObject
EntryFieldDelegate protocol. Forwards all UITextView delegate methods.
-
Asks the delegate if editing should begin in the specified AreaField.
Declaration
Swift
@objc optional func areaFieldShouldBeginEditing(_ view: AreaField) -> Bool
Parameters
view
The AreaField that called the delegate method.
-
Tells the delegate that editing of the specified EntryField has begun.
Declaration
Swift
@objc optional func areaFieldDidBeginEditing(_ view: AreaField)
Parameters
view
The AreaField that called the delegate method.
-
Asks the delegate if editing should stop in the specified EntryField.
Declaration
Swift
@objc optional func areaFieldShouldEndEditing(_ view: AreaField) -> Bool
Parameters
view
The AreaField that called the delegate method.
-
Tells the delegate that editing of the specified EntryField has ended.
Declaration
Swift
@objc optional func areaFieldDidEndEditing(_ view: AreaField)
Parameters
view
The AreaField that called the delegate method.
-
Asks the delegate whether the specified text should be replaced in the EntryField.
Declaration
Swift
@objc optional func areaField(_ view: AreaField, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool
Parameters
view
The text to insert.
range
The current selection range. If the length of the range is 0, range reflects the current insertion point. If the user presses the Delete key, the length of the range is 1 and an empty string object replaces that single character.
view
The text to insert.