Indicates whether or not a graphics path represents a rectangle.
SDKs
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Graphics
Declaration
func isRect(_ rect: Unsafe Mutable Pointer<CGRect>?) -> Bool
Parameters
rect
On input, a pointer to an uninitialized rectangle. If the specified path represents a rectangle, on return contains a copy of the rectangle.
Return Value
A Boolean value that indicates whether the specified path represents a rectangle. If the path represents a rectangle, returns true
.