-
-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Missing functionality for hit testing & content shape area
Expected behaviour
Add missing functionality and verify gesture start against the shape fill area.
extension View {
/// Defines the content shape for hit testing.
/// - Parameters:
/// - shape: The hit testing shape for the view.
/// - eoFill: A Boolean that indicates whether the shape is interpreted with the even-odd winding number rule.
/// - Returns: A view that uses the given shape for hit testing.
@inlinable public func contentShape<S: Shape>(
_ shape: S,
eoFill: Bool = false
) -> some View {
// TODO: Add content shape modifier. Verify gesture start against the shape fill area.
self
}
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working