allowsHitTesting(_:)
Configures whether this view participates in hit test operations.
Declaration
nonisolated func allowsHitTesting(_ enabled: Bool) -> some View
Discussion
Specify true to indicate this view participates in hit testing for a method such as hitTest(_:) to determine whether a point is inside a view. Otherwise specify false.
For more information, see hitTest(_:).