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

# SelectionShapeStyle

A style used to visually indicate selection following platform conventional
colors and behaviors.

```
struct SelectionShapeStyle
```

## Overview

You can also use [`selection`](/documentation/SwiftUI/ShapeStyle/selection) to construct this style.

## Topics

### Creating a selection shape style

[`init()`](/documentation/SwiftUI/SelectionShapeStyle/init())

Creates a selection shape 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)