SwiftUI View hosted in a UIHostingController: Cancelling an interactive dismiss causes Button not to respond to taps

Originator:dean.harel
Number:rdar://FB9075949 Date Originated:04.11.2021
Status:Open Resolved:No
Product:iOS/iPadOS Product Version:
Classification:SwiftUI Reproducible:Yes
 
Reproduction Steps:
- Create a custom presentation, supporting interactive dismiss (e.g by subclassing UIKit's UIPercentDrivenInteractiveTransition)
- Use this custom presentation for presenting a UIHostingController, showing a simple SwiftUI Button
- Use the pan gesture to dismiss the UIHostingController, but cancel it in the middle - so that UIHostingController is still presented

Expected Results:
The SwiftUI Button should still receive taps.


Actual Results:
The SwiftUI Button NO LONGER RECEIVES TAPS.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!