Post

Replies

Boosts

Views

Activity

Unable to use hardware keyboard in Xcode 12 live previews
I am unable to use the hardware keyboard to enter text in text fields when using Xcode 12 live previews. Same issue with all preview devices. Running on macOS 10.15.5. Is there an option I am missing or a workaround for this? import SwiftUI struct ContentView: View { @State private var text = "" var body: some View { Form { TextField("Write something", text: $text) } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
7
0
3.4k
Jun ’20