Contents

init(ovalIn:)

Creates and returns a new Bézier path object with an inscribed oval path in the specified rectangle.

Declaration

convenience init(ovalIn rect: CGRect)

Parameters

  • rect:

    The rectangle in which to inscribe an oval.

Return Value

A new path object with the oval path.

Discussion

This method creates a closed subpath that approximates the oval using a sequence of Bézier curves. The path is created in a clockwise direction (relative to the default coordinate system). If the rect parameter specifies a square, the inscribed path is a circle.

See Also

Creating a Bézier path