Contents

CGRectGetMidY(_:)

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

Declaration

func CGRectGetMidY(_ rect: CGRect) -> CGFloat

Parameters

  • rect:

    The rectangle to examine.

Return Value

The y-coordinate of the center of the specified rectangle.

See Also

Getting Min, Mid, and Max Values