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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software