Post

Replies

Boosts

Views

Activity

Comment on SwiftUI Gestures prevent scrolling with iOS 18
I made it! I found that Apple release a new Protocol called "UIGestureRecognizerRepresentable", I use it to wrapper UIKit Gesture, then apply it to my SwiftUI View. TabView { Text("1") Text("2") } .tabViewStyle(.page) .gesture(ComicTapGesture({ _ in })) struct ComicTapGesture: UIGestureRecognizerRepresentable { ... }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24