SwiftUI - Why does the keyboard pushes my view?
问题 Why do I have the keyboard that pushes up my View? Here's the code: import SwiftUI struct ContentView : View { @State var searchText = "" @State var pressedFirstButton = false @State var pressedSecondButton = true @State var pressedThirdButton = false var body : some View { NavigationView { VStack { if pressedSecondButton == true { Form { SearchBar(testo: $searchText) .padding(.horizontal, -10) Text("ForEach") } } HStack { Spacer() buttonFirst Spacer() buttonSecond Spacer() buttonThird Spacer