Open
Description
Try this simple app:
import SwiftUI
struct ContentView: View {
@State private var textInput = ""
@State private var isToggleOn = false
var body: some View {
VStack {
TextField("Enter text", text: $textInput)
Toggle(isOn: $isToggleOn) {}
.toggleStyle(.switch)
Button("Button") {}
}
}
}
If you have keyboard navigation setting
enabled, then you can easily navigate through elements by pressing "tab" key.
But if you add
KeyboardShortcuts.Recorder(for: .shortcut)
before
Button("Button") {}
then the Button
won't be reachable by the tab key.
Metadata
Metadata
Assignees
Labels
No labels