editingRect(forBounds:)
Returns the rectangle for displaying editable text.
Declaration
func editingRect(forBounds bounds: CGRect) -> CGRectParameters
- bounds:
The bounding rectangle of the receiver.
Return Value
The computed editing rectangle for the text.
Discussion
You should not call this method directly. If you want to provide a different editing rectangle for the text, you can override this method and return that rectangle. By default, this method returns a region in the text field that is not occupied by any overlay views.