Keyboard on Xcode Previews

Hey guys, anybody knows how to fix issues with the keyboard on Xcode in preview mode? it used to work well for me but has now stopped working, see details.

Problem statement: Cannot use the keyboard in previews. For example, typing in a textfield does nothing. Everything works well in simulator.

Environment: macOS Monterey 12.6 Xcode 14.1

Thanks in advance for your input.

Post not yet marked as solved Up vote post of laurentbourg Down vote post of laurentbourg
1.2k views

Replies

Hi,

Sorry to hear you are having problems getting keyboards in previews working. We are tracking some issues that sound related, but if you want to be sure we are tracking the specific issue you are hitting thenthe best next step will be to file a feedback with diagnostics so we can take a look.

  1. Click the "Diagnostics" button in that banner (or if the banner is missing you can use the menu: Editor > Canvas > Diagnostics)
  2. In the sheet that appears, click "Generate Report" in the bottom left of the sheet
  3. Attach (or make from the folder) the resulting zip file to the bug (will be named something like previews-diagnostics-0123456789.zip)

+1

this would be a nice feature to have when designing layouts to see where things land relative to the keyboard. It does not need to function.