Skip to content

Commit 9364b63

Browse files
authored
fix: 🐛 [IOSSDKBUG-842] gesture covered original acc setting (SAP#1188)
1 parent ae487a4 commit 9364b63

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Sources/FioriSwiftUICore/Utils/View+Extensions.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ extension View {
1717
func onSimultaneousTapGesture(count: Int = 1, perform action: @escaping () -> Void) -> some View {
1818
self.accessibilitySimultaneousGesture(TapGesture(count: count).onEnded {
1919
action()
20-
})
20+
}, perform: action)
2121
}
2222

2323
// In order to fix an issue where the simultaneous gesture is not activated in voice over.
24-
func accessibilitySimultaneousGesture(_ gesture: some Gesture, including mask: GestureMask = .all) -> some View {
24+
func accessibilitySimultaneousGesture(_ gesture: some Gesture, including mask: GestureMask = .all, perform action: @escaping () -> Void) -> some View {
2525
simultaneousGesture(gesture, including: mask)
26-
.accessibilityElement()
26+
.accessibilityElement(children: .combine)
27+
.accessibilityAction {
28+
action()
29+
}
2730
}
2831
}
2932

0 commit comments

Comments
 (0)