Generic Instance Method

contentShape(_:eoFill:)

Defines the content shape for hit testing.

Declaration

func contentShape<S>(_ shape: S, eoFill: Bool = false) -> some View where S : Shape

Discussion

eoFill defines whether the shape is interpreted with the even-odd winding number rule.

See Also

Configuring a View for Hit Testing

func allowsHitTesting(Bool) -> View

Configures whether this view participates in hit test operations.