---
title: interaction
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/contentshapekinds/interaction
---

# interaction

The kind for hit-testing and accessibility.

## Declaration

```swift
static let interaction: ContentShapeKinds
```

## Discussion

Discussion Setting a content shape with this kind causes the view to hit-test using the specified shape.

## See Also

### Getting shape kinds

- [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)
