Instance Property

minX

Returns the smallest value for the x-coordinate of the rectangle.

Declaration

var minX: CGFloat { get }

Parameters

rect

The rectangle to examine.

Return Value

The smallest value for the x-coordinate of the rectangle.

See Also

Calculated Geometric Properties

var height: CGFloat

Returns the height of a rectangle.

var width: CGFloat

Returns the width of a rectangle.

var midX: CGFloat

Returns the x- coordinate that establishes the center of a rectangle.

var maxX: CGFloat

Returns the largest value of the x-coordinate for the rectangle.

var minY: CGFloat

Returns the smallest value for the y-coordinate of the rectangle.

var midY: CGFloat

Returns the y-coordinate that establishes the center of the rectangle.

var maxY: CGFloat

Returns the largest value for the y-coordinate of the rectangle.

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