Press ESC to close

Toolbar

SwiftUI contains sets of structs that simplify adding different types of toolbars. It doesn't matter that you want to add a macOS or iOS navigation bar toolbar, iOS bottom bar toolbar, or actions over a keyboard. It all starts with a toolbar view modifier.

How to add keyboard toolbar actions in SwiftUI

SwiftUI 3 brings additional, longly awaited functionality - the possibility to displays toolbar actions above the system keyboard. You probably expect that already, but adding views to the keyboard toolbar is also very easy. Let's take a look at a provided example....