Generic Instance Method

contentShape(_:eoFill:)

Returns a new view that defines the content shape for hit-testing self as shape. eoFill defines whether the shape is interpreted using the even-odd winding number rule or not.

Declaration

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

See Also

Configuring a View for Hit Testing