CGRectStandardize(_:)
Returns a rectangle with a positive width and height.
Declaration
func CGRectStandardize(_ rect: CGRect) -> CGRectParameters
- rect:
The source rectangle.
Return Value
A rectangle that represents the source rectangle, but with positive width and height values. Returns a null rectangle if rect is a null rectangle.