-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase support for SpatialTapGesture #279
Conversation
@@ -260,7 +260,7 @@ internal extension InspectableView { | |||
return (modifier, []) | |||
case .composed: | |||
return traverseComposedGesture(modifier, name, &modifiers) | |||
case .state : | |||
case .state: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed swiftlint warning
@@ -78,7 +78,7 @@ final class GridTests: XCTestCase { | |||
func testGridRowAlignmentInspection() throws { | |||
guard #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) | |||
else { throw XCTSkip() } | |||
let view = Grid() { GridRow(alignment: .bottom) { EmptyView() } } | |||
let view = Grid { GridRow(alignment: .bottom) { EmptyView() } } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed swiftlint warning
|
||
@available(iOS 16.0, macOS 13.0, watchOS 9.0, *) | ||
@available(tvOS, unavailable) | ||
final class SpatialTapGestureTests: XCTestCase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were largely pilfered from RotationGestureTests. I'm not sure I understand the full scope of CommonGestureTests, but I hope this covers all intended uses of SpatialTapGesture.
Thank you for this nice addition, @andy-vanwagoner-jn ! |
To write tests using
SpatialTapGesture
, we needed a way to initialize theValue
. This adds the appropriateinit
& adds tests forSpatialTapGesture
.