Skip to content

Commit d695a44

Browse files
committed
Update GestureModifier
1 parent 8b3e56c commit d695a44

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

Sources/OpenSwiftUICore/Event/Gesture/GestureDebug.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ extension GestureDebug.Data: Defaultable {
6868

6969
// MARK: - PrimitiveDebuggableGesture [6.5.4]
7070

71-
package protocol PrimitiveDebuggableGesture {
72-
}
71+
package protocol PrimitiveDebuggableGesture {}
7372

7473
// MARK: - DebuggableGesturePhase [6.5.4]
7574

Sources/OpenSwiftUICore/Event/Gesture/GestureModifier.swift

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// GestureModifier.swift
33
// OpenSwiftUICore
44
//
5-
// Status: Blocked by makeDebuggableGesture
5+
// Status: Complete
66

77
package protocol GestureModifier {
88
associatedtype Value
@@ -33,10 +33,18 @@ package struct ModifierGesture<ContentModifier, Content>: PrimitiveGesture
3333
package typealias Value = ContentModifier.Value
3434

3535
package static func _makeGesture(
36-
gesture: _GraphValue<ModifierGesture<ContentModifier, Content>>,
36+
gesture: _GraphValue<Self>,
3737
inputs: _GestureInputs
3838
) -> _GestureOutputs<ContentModifier.Value> {
39-
preconditionFailure("TODO")
39+
ContentModifier.makeDebuggableGesture(
40+
modifier: gesture[offset: { .of(&$0.modifier) }],
41+
inputs: inputs
42+
) { inputs in
43+
Content.makeDebuggableGesture(
44+
gesture: gesture[offset: { .of(&$0.content) }],
45+
inputs: inputs
46+
)
47+
}
4048
}
4149
}
4250

0 commit comments

Comments
 (0)