<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/GraphicsContext/Shading/conicGradient(_:center:angle:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15GraphicsContextV7ShadingV13conicGradient_6center5angle7optionsAeA03AnyG0V_So7CGPointVAA5AngleVAC0G7OptionsVtFZ::OverloadGroup"
  },
  "title" : "conicGradient(_:center:angle:options:)"
}
-->

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

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

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

## Parameters

`gradient`

An [`AnyGradient`](/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

A shading instance filled with a conic gradient.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)