Skip to content

Instantly share code, notes, and snippets.

@aaronbushnell
Created June 23, 2023 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronbushnell/fdef8ddfe95369b789fbf867bb689a24 to your computer and use it in GitHub Desktop.
Save aaronbushnell/fdef8ddfe95369b789fbf867bb689a24 to your computer and use it in GitHub Desktop.
Keyboard bug showing whitespace upon dismissal
import SwiftUI
struct ContentView: View {
@State private var name = ""
var body: some View {
NavigationStack {
Form {
TextField("Name", text: $name)
}
.navigationTitle("Contacts")
}
}
}
import SwiftUI
@main
struct SwiftUIByExampleApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment