Structure

CGGradientDrawingOptions

Drawing locations for gradients.

Declaration

struct CGGradientDrawingOptions

Topics

Constants

static var drawsBeforeStartLocation: CGGradientDrawingOptions

The fill should extend beyond the starting location. The color that extends beyond the starting point is the solid color defined by the CGGradient object to be at location 0.

static var drawsAfterEndLocation: CGGradientDrawingOptions

The fill should extend beyond the ending location. The color that extends beyond the ending point is the solid color defined by the CGGradient object to be at location 1.

Relationships

Conforms To

See Also

Drawing Gradients and Shadings

func drawLinearGradient(CGGradient, start: CGPoint, end: CGPoint, options: CGGradientDrawingOptions)

Paints a gradient fill that varies along the line defined by the provided starting and ending points.

func drawShading(CGShading)

Fills the clipping path of a context with the specified shading.