Ios swift – SwiftUI @FocusState not working in ScrollView
This code works great, just as it should. isFocused reflects the focus state of the text field, and pressing the Button drops the keyboard. struct ContentView: View { @State private var textInput = "" @FocusState private var isFocused: Bool var…