Disabling first responder text field in sheet with NavigationView leads to crash.

Originator:noah.peeters99
Number:rdar://FB7558712 Date Originated:Jan 31, 2020
Status:Open Resolved:
Product:SwiftUI Framework Product Version:
Classification:bug Reproducible:Always
 
When a text field is the first responder in a sheet on an iPad in Portrait mode and the textfield changes to disabled, the app crashes.

1. Open the attached example project.
2. Run on an iPad/iPad Simulator (I tried this with the 12.9 inch 3rd gen)
3. Make sure that the iPad is portrait mode
4. Open the sheet by pressing "Open Sheet"
5. Select the text field
6. Make sure that the onscreen keyboard is shown
7. Press the "Disable Text Field" button

Now the application will crash.

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!