Instance Method
strokeEllipse(in:)
Strokes an ellipse that fits inside the specified rectangle.
SDKs
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Declaration
func strokeEllipse(in rect: CGRect)
Parameters
rect
A rectangle that defines the area for the ellipse to fit in.
Discussion
The current path is cleared as a side effect of calling this function.
See Also
Drawing Shapes
func fill(CGRect)
Paints the area contained within the provided rectangle, using the fill color in the current graphics state.
func fill([CGRect])
Paints the areas contained within the provided rectangles, using the fill color in the current graphics state.
func fillEllipse(in: CGRect)
Paints the area of the ellipse that fits inside the provided rectangle, using the fill color in the current graphics state.