Instance Method

convertToUserSpace(_:)

Returns a size that is transformed from device space coordinates to user space coordinates

Declaration

func convertToUserSpace(_ size: CGSize) -> CGSize

Parameters

size

The size, in device space coordinates, to transform.

Return Value

The size in user space coordinates.

See Also

Converting Between Coordinate Spaces

var userSpaceToDeviceSpaceTransform: CGAffineTransform

Returns an affine transform that maps user space coordinates to device space coordinates.

func convertToDeviceSpace(CGPoint)

Returns a point that is transformed from user space coordinates to device space coordinates.

func convertToUserSpace(CGPoint)

Returns a point that is transformed from device space coordinates to user space coordinates.

func convertToDeviceSpace(CGRect)

Returns a rectangle that is transformed from user space coordinate to device space coordinates.

func convertToUserSpace(CGRect)

Returns a rectangle that is transformed from device space coordinate to user space coordinates.

func convertToDeviceSpace(CGSize)

Returns a size that is transformed from user space coordinates to device space coordinates.