Instance Method

fillPath(_:in:)

Fills the area enclosed by the specified path.

Declaration

func fillPath(_ path: CGPath, in context: CGContext)

Parameters

path

The path to fill.

context

The graphics context in which to draw the path.

Discussion

You must set the current fill color before calling this method. Typically you do this by calling the applyFillProperties(to:atZoomScale:) method prior to drawing. If the fillColor property is currently nil, this method does nothing.

See Also

Drawing the Path

func applyStrokeProperties(to: CGContext, atZoomScale: MKZoomScale)

Applies the receiver’s current stroke-related drawing properties to the specified graphics context.

func applyFillProperties(to: CGContext, atZoomScale: MKZoomScale)

Applies the receiver’s current fill-related drawing properties to the specified graphics context.

func strokePath(CGPath, in: CGContext)

Draws a line along the specified path.