From 1f664b425017dd7b8cb2536dff5def2bf74612d0 Mon Sep 17 00:00:00 2001 From: "severin.memmishofer" Date: Mon, 10 Jul 2023 16:33:18 +0200 Subject: [PATCH] Added "global" toolbar with labels and images --- RippleChat/RippleChatApp.swift | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/RippleChat/RippleChatApp.swift b/RippleChat/RippleChatApp.swift index 815724c..b0aa386 100644 --- a/RippleChat/RippleChatApp.swift +++ b/RippleChat/RippleChatApp.swift @@ -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") + } + } } } }