<!--
{
  "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/ContentShapeKinds",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17ContentShapeKindsV"
  },
  "title" : "ContentShapeKinds"
}
-->

# ContentShapeKinds

A kind for the content shape of a view.

```
struct ContentShapeKinds
```

## Overview

The kind is used by the system to influence various effects, hit-testing,
and more.

## Topics

### Getting shape kinds

[`interaction`](/documentation/SwiftUI/ContentShapeKinds/interaction)

The kind for hit-testing and accessibility.

[`dragPreview`](/documentation/SwiftUI/ContentShapeKinds/dragPreview)

The kind for drag and drop previews.

[`contextMenuPreview`](/documentation/SwiftUI/ContentShapeKinds/contextMenuPreview)

The kind for context menu previews.

[`focusEffect`](/documentation/SwiftUI/ContentShapeKinds/focusEffect)

The kind for the focus effect.

[`hoverEffect`](/documentation/SwiftUI/ContentShapeKinds/hoverEffect)

The kind for hover effects.

[`accessibility`](/documentation/SwiftUI/ContentShapeKinds/accessibility)

The kind for accessibility visuals and sorting.

### Creating a set of options

[`init(rawValue:)`](/documentation/SwiftUI/ContentShapeKinds/init(rawValue:))

Creates a content shape kind.

## Relationships

### Conforms To

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

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

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

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

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

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

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

---

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)