This course is available as part of the Professional subscription. To learn more click here

Handling Keyboard & Pointer Interactions in SwiftUI

Nov 23 2021 · Video Course (37 mins) · Intermediate

Learn how to handle the iOS keyboard, external hardware keyboards, and pointer interactions in a SwiftUI app.


  • Swift 5.5, iOS 15, Xcode 13

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.


Manage Focus


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.


Version history

iOS 15, Swift 5.5, Xcode 13 (Selected)

Nov 23 2021

iOS 14, Swift 5.3, Xcode 12.4

Apr 22 2021

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