From 28df688dadcb4c3da75faedd9b754fc033b26353 Mon Sep 17 00:00:00 2001 From: "johan.lachenal" Date: Thu, 16 May 2024 11:41:00 +0200 Subject: [PATCH] Update(MainMenu) : add buttons for the different pages --- .../Preview Content/MainMenu.swift | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/ArkitDoushiQi/ArkitDoushiQi/Preview Content/MainMenu.swift b/ArkitDoushiQi/ArkitDoushiQi/Preview Content/MainMenu.swift index a7e59dc..4899134 100644 --- a/ArkitDoushiQi/ArkitDoushiQi/Preview Content/MainMenu.swift +++ b/ArkitDoushiQi/ArkitDoushiQi/Preview Content/MainMenu.swift @@ -10,9 +10,38 @@ import SwiftUI struct MainMenu: View { var body: some View { VStack { + Spacer() + Button("parties enregistrées"){} + .frame(maxWidth: .infinity) + .padding(EdgeInsets(top: 10, leading: 32, bottom: 10, trailing: 32)) + .buttonStyle(.bordered) + .controlSize(.large) + .foregroundColor(.white) + .background(.black) + .buttonBorderShape(.roundedRectangle) + .clipShape(Capsule()) + Spacer().frame(height: 50) + Button("paramètres"){} + .frame(maxWidth: .infinity) + .padding(EdgeInsets(top: 10, leading: 32, bottom: 10, trailing: 32)) + .buttonStyle(.bordered) + .controlSize(.large) + .foregroundColor(.white) + .background(.black) + .clipShape(Capsule()) + Spacer().frame(height: 50) Button("jouer"){} + .frame(maxWidth: .infinity) + .padding(EdgeInsets(top: 10, leading: 32, bottom: 10, trailing: 32)) .buttonStyle(.bordered) + .controlSize(.large) + .foregroundColor(.white) + .background(.black) + .clipShape(Capsule()) + Spacer() } + .fixedSize(horizontal: false, vertical: true) + .padding(EdgeInsets(top: 10, leading: 32, bottom: 10, trailing: 32)) } }