Contents

conicGradient(_:center:angle:options:)

Returns a shading instance that fills a conic (angular) gradient.

Declaration

static func conicGradient(_ gradient: Gradient, center: CGPoint, angle: Angle = Angle(), options: GraphicsContext.GradientOptions = GradientOptions()) -> GraphicsContext.Shading

Parameters

  • gradient:

    A Gradient instance that defines the colors of the gradient.

  • center:

    The point in the current user space on which SwiftUI centers the gradient.

  • angle:

    The angle about the center that SwiftUI uses to start and finish the gradient. The gradient sweeps all the way around the center.

  • options:

    Options that you use to configure the gradient.

Return Value

A shading instance filled with a conic gradient.

See Also

Gradients