Toolbars are amongst the interesting additions to SwiftUI’s second iteration during WWDC 2020.
Essentially, toolbar
is a modifier that lets you place a wrap around a bunch of view controls and set them at desired locations.
By default, SwiftUI can smartly determine and set views at desired locations with the toolbar
modifier, but you can also explicitly set it using ToolbarItem
.
In the next few sections, we’ll look at:
toolbar
modifierToolbarItem
for manual placements#swiftui #mobile #ios #swift