Post

Replies

Boosts

Views

Activity

Reply to UIToolbar in SwiftUI?
In case anyone comes across this (as I did) I believe the proper way to do this now (iOS 14) is via a ToolbarItemGroup. Something like this (to match the example above) import SwiftUI struct SomeView: View { var body: some View { NavigationView { VStack { List(model.items) { item in ItemViewRow(item: item) } HStack { }.padding() } .navigationTitle(Text("Items")) .toolbar { ToolbarItemGroup(placement: .bottomBar) { Button(action: { }) { Image(systemName: "someimage") } Spacer() Button(action: { }) { Image(systemName: "someimage") } } } } } }
Jun ’21