<!--
{
  "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/angularGradient(colors:center:startAngle:endAngle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI10ShapeStylePA2A15AngularGradientVRszrlE07angularF06colors6center10startAngle03endK0AESayAA5ColorVG_AA9UnitPointVAA0K0VAQtFZ"
  },
  "title" : "angularGradient(colors:center:startAngle:endAngle:)"
}
-->

# angularGradient(colors:center:startAngle:endAngle:)

An angular gradient defined by a collection of colors.

```
@export(implementation) static func angularGradient(colors: [Color], center: UnitPoint, startAngle: Angle, endAngle: Angle) -> 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.

`startAngle`

The angle that marks the beginning of the gradient.

`endAngle`

The angle that marks the end of the gradient.

## Discussion

For more information on how to use angular gradients, see
[`angularGradient(_:center:startAngle:endAngle:)`](/documentation/SwiftUI/ShapeStyle/angularGradient(_:center:startAngle:endAngle:)).

---

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)