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

# contextMenuPreview

The kind for context menu previews.

## Declaration

```swift
static let contextMenuPreview: ContentShapeKinds
```

## Discussion

Discussion When using this kind, only the preview shape will be affected. To control the shape used to hit-test and start the context menu presentation, use the .interaction kind.

## See Also

### Getting shape kinds

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