---
title: ContentShapeKinds
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/contentshapekinds
---

# ContentShapeKinds

A kind for the content shape of a view.

## Declaration

```swift
struct ContentShapeKinds
```

## Overview

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

## Topics

### Getting shape kinds

- [interaction](swiftui/contentshapekinds/interaction.md)
- [dragPreview](swiftui/contentshapekinds/dragpreview.md)
- [contextMenuPreview](swiftui/contentshapekinds/contextmenupreview.md)
- [focusEffect](swiftui/contentshapekinds/focuseffect.md)
- [hoverEffect](swiftui/contentshapekinds/hovereffect.md)
- [accessibility](swiftui/contentshapekinds/accessibility.md)

### Creating a set of options

- [init(rawValue:)](swiftui/contentshapekinds/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Controlling hit testing

- [allowsTightening(_:)](swiftui/view/allowstightening(_:).md)
- [contentShape(_:eoFill:)](swiftui/view/contentshape(_:eofill:).md)
- [contentShape(_:_:eoFill:)](swiftui/view/contentshape(_:_:eofill:).md)
