Although the view is interactive (scrolling vertically seems to be OK) and a cursor appears in the TextField view when it is clicked on, keyboard input is ignored.
The same code works as expected in Xcode 11.5. Simulator in both 11.5 and 12 exhibits expected behaviour.
Is this a bug? I know there is an issue with interactivity in Preview with multiple views inside PreviewProvider but I'd assumed this is if you'd added multiple Views to the same body of this struct.
Same issue with Xcode 13.2.1, I downloaded from the Application Store, I downloaded from the Developers website, the same error, I cannot enter info on a TextField in Preview, the cursor appear, I can paste, but not enter data from the keyboard. I can enter data when I run the sample in my phone.
I'm trying to get my head around Xcode Swift 5. It really doesn't help with understanding or confidence when the software tool itself is not being maintained well enough for what has evidently been a long standing bug to still exist as of January 26 2022. I'm using an M1 Macbook pro and fully up to date
OS Monterey Version 12.1 (21C52) with Xcode Version 13.2.1 (13C100)