---
title: "conicGradient(_:center:angle:options:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/graphicscontext/shading/conicgradient(_:center:angle:options:)"
---

# conicGradient(_:center:angle:options:)

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

## Declaration

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

## Parameters

- `gradient`: An doc://com.apple.SwiftUI/documentation/SwiftUI/AnyGradient 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

Return Value A shading instance filled with a conic gradient.

## See Also

### Gradients

- [linearGradient(_:startPoint:endPoint:options:)](swiftui/graphicscontext/shading/lineargradient(_:startpoint:endpoint:options:).md)
- [radialGradient(_:center:startRadius:endRadius:options:)](swiftui/graphicscontext/shading/radialgradient(_:center:startradius:endradius:options:).md)
