I'm also seeing this problem with Swift Charts. This is with the latest Xcode 26 Beta 6 and iOS 26 Beta 8. This issue doesn't affect devices running iOS 18 and 17 from my testing. As such I've made this modifier which may help someone, hopefully I can remove it in the release seed but who knows!
extension View {
func CustomTapGesture(tapCount:Int = 1, perform action: @escaping () -> Void ) -> some View {
modifier(TapGestureModifier(tapCount: tapCount, action: action))
}
}
struct TapGestureModifier: ViewModifier {
var tapCount:Int = 1
var action: (() -> Void)
func body(content: Content) -> some View {
if #available(iOS 26.0, *) {
content.simultaneousGesture(TapGesture(count: tapCount).onEnded {
action()
})
}
else {
content.onTapGesture(count: tapCount) {
action()
}
}
}
}
Which can be used like this:
Text("Hello World")
.CustomTapGesture(tapCount:2) {
UIImpactFeedbackGenerator().impactOccurred()
}
To be clear, this doesn't work as well for iOS 26 users as the standard .onTapGesture but it is a workaround.