Contents

rightViewRect(forBounds:)

Returns the drawing location of the text field’s right overlay view.

Declaration

func rightViewRect(forBounds bounds: CGRect) -> CGRect

Parameters

  • bounds:

    The bounding rectangle of the receiver.

Return Value

The rectangle in which to draw the right overlay view.

Discussion

You should not call this method directly. If you want to place the right overlay view in a different location, you can override this method and return the new rectangle. Note that the drawing rectangle remains unchanged in a right-to-left user interface.

See Also

Drawing and positioning overrides