<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ShapeStyle/conicGradient(colors:center:angle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI10ShapeStylePA2A15AngularGradientVRszrlE05conicF06colors6center5angleAESayAA5ColorVG_AA9UnitPointVAA5AngleVtFZ"
  },
  "title" : "conicGradient(colors:center:angle:)"
}
-->

# conicGradient(colors:center:angle:)

A conic gradient defined by a collection of colors that completes a full
turn.

```
@export(implementation) static func conicGradient(colors: [Color], center: UnitPoint, angle: Angle = .zero) -> AngularGradient
```

## Parameters

`colors`

The colors of the gradient, evenly spaced along its full
length.

`center`

The relative center of the gradient, mapped from the unit
space into the bounding rectangle of the filled shape.

`angle`

The angle to offset the beginning of the gradient’s full
turn.

## Discussion

For more information on how to use conic gradients, see
[`conicGradient(_:center:angle:)`](/documentation/SwiftUI/ShapeStyle/conicGradient(_:center:angle:)).

---

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)