Added "global" toolbar with labels and images

This commit is contained in:
severin.memmishofer 2023-07-10 16:33:18 +02:00
parent 3d950bf69f
commit 1f664b4250

View File

@ -16,8 +16,26 @@ struct RippleChatApp: App {
ContentView()
.toolbar {
ToolbarItemGroup(placement: .bottomBar) {
Button("Peers") {}
Button(action: {}) {
VStack {
Label("Discovery", systemImage: "dot.radiowaves.left.and.right")
Text("Discovery")
}
}
Spacer()
Button(action: {}) {
VStack {
Label("Discovery", systemImage: "person.2")
Text("Feeds")
}
}
Spacer()
Button(action: {}) {
VStack {
Label("Discovery", systemImage: "gear")
Text("Settings")
}
}
}
}
}