Post

Replies

Boosts

Views

Activity

Reply to Button Touch Not Canceled in ScrollView on Modal in SwiftUI for iOS 18
I began to see this in our app too. It took me a while to figure out that it only affected modal views. Judging by the amount of time this thread has been open, I am going to guess that I am better off using one of the workarounds than waiting on a fix. Changing from a Button to using onTapGesture { } for the subview resolves the issue for me, but you lose any button styling and tap state handling.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’25