<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CAGradientLayerType",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:@T@CAGradientLayerType"
  },
  "title" : "CAGradientLayerType"
}
-->

# CAGradientLayerType

```
struct CAGradientLayerType
```

## Topics

### Initializers

[`init(rawValue:)`](/documentation/QuartzCore/CAGradientLayerType/init(rawValue:))

### Type Properties

[`kCAGradientLayerAxial`](/documentation/QuartzCore/CAGradientLayerType/axial)

An axial gradient (also called a linear gradient) varies along an axis between two defined end points. All points that lie on a line perpendicular to the axis have the same color value.

[`kCAGradientLayerConic`](/documentation/QuartzCore/CAGradientLayerType/conic)

[`kCAGradientLayerRadial`](/documentation/QuartzCore/CAGradientLayerType/radial)

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)