ContentShapeKinds

A kind for the content shape of a view.

StructureiOS 15.0+macOS 12.0+tvOS 15.0+watchOS 8.0+ContentShapeKinds in SwiftUI

Declaration

React
type ContentShapeKinds =
  | ('accessibility'
  | 'contextMenuPreview'
  | 'dragPreview'
  | 'hoverEffect'
  | 'interaction'
  | { rawValue: number; })
  | readonly ('accessibility'
  | 'contextMenuPreview'
  | 'dragPreview'
  | 'hoverEffect'
  | 'interaction'
  | { rawValue: number; })[];
Swift
struct ContentShapeKinds

Pass a literal, or build one with SwiftUI.ContentShapeKinds from import { SwiftUI } from 'swiftui-react-native'.

Overview

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

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Drawing and shapes.