<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/HierarchicalShapeStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI22HierarchicalShapeStyleV"
  },
  "title" : "HierarchicalShapeStyle"
}
-->

# HierarchicalShapeStyle

A shape style that maps to one of the numbered content styles.

```
@frozen struct HierarchicalShapeStyle
```

## Topics

### Getting hierarchical shape styles

[`primary`](/documentation/SwiftUI/HierarchicalShapeStyle/primary)

A shape style that maps to the first level of the current
content style.

[`secondary`](/documentation/SwiftUI/HierarchicalShapeStyle/secondary)

A shape style that maps to the second level of the current
content style.

[`tertiary`](/documentation/SwiftUI/HierarchicalShapeStyle/tertiary)

A shape style that maps to the third level of the current
content style.

[`quaternary`](/documentation/SwiftUI/HierarchicalShapeStyle/quaternary)

A shape style that maps to the fourth level of the current
content style.



---

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)