Instance Method

convert(_:from:)

Converts a rectangle from the specified coordinate space to the coordinate space of the current object.

Required.

Declaration

func convert(_ rect: CGRect, from coordinateSpace: UICoordinateSpace) -> CGRect

Parameters

rect

A rectangle in the specified coordinate space.

coordinateSpace

The coordinate space in which rect is specified.

Return Value

A rectangle specified in the coordinate space of the current object.

See Also

Converting Between Coordinate Spaces

func convert(CGPoint, to: UICoordinateSpace) -> CGPoint

Converts a point from the coordinate space of the current object to the specified coordinate space.

Required.

func convert(CGPoint, from: UICoordinateSpace) -> CGPoint

Converts a point from the specified coordinate space to the coordinate space of the current object.

Required.

func convert(CGRect, to: UICoordinateSpace) -> CGRect

Converts a rectangle from the coordinate space of the current object to the specified coordinate space.

Required.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software