Handling Keyboard & Pointer Interactions in SwiftUI
Learn how to handle the iOS keyboard, external hardware keyboards, and pointer interactions in a SwiftUI app. By Catie Catterwaul.
Who is this for?
This course will be best for developers with some Swift and SwiftUI experience.
Covered concepts
- iOS Software Keyboard
- Toolbars
- @FocusState
- Keyboard Shortcut
- UIResponder
- Hover Effect
Part 1: Handling Keyboard & Pointer Interactions in SwiftUI
Learn how to show the software keyboard in a SwiftUI app without covering up your text fields.
Solve one of the great mysteries of iOS development: dismissing the software keyboard.
Attach a custom toolbar to the iOS software keyboards to provide handy tools for text input.
New for iOS 15: Use the new @FocusState property wrapper to adjust focus between multiple input fields.
It’s easy to hook up an external hardware keyboard to your iPad! Make the most of it by adding keyboard shortcuts to your app.
iPads also support pointing devices, like trackpads and mice. Learn to add some customized pointer support to iPadOS apps.