From 62ce99ebdaa87325486fa289e707c9e571918848 Mon Sep 17 00:00:00 2001 From: Nathan Date: Mon, 24 Jun 2024 21:45:38 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Update:=20navigation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DouShouQi_App/DouShouQi_App/Views/Menu/MainMenuView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DouShouQi_App/DouShouQi_App/Views/Menu/MainMenuView.swift b/DouShouQi_App/DouShouQi_App/Views/Menu/MainMenuView.swift index cc7382d..103e633 100644 --- a/DouShouQi_App/DouShouQi_App/Views/Menu/MainMenuView.swift +++ b/DouShouQi_App/DouShouQi_App/Views/Menu/MainMenuView.swift @@ -6,6 +6,7 @@ // import SwiftUI +import DouShouQiModel struct MainMenuView: View { @@ -69,7 +70,7 @@ struct MainMenuView: View { SettingsView() } .navigationDestination(isPresented: $showARKit) { - ARKitUIViewBoard(aRKitViewRepresentable: ARKitViewRepresentable()) + ARKitUIViewRepresentable(aRKitView: ARKitView(playingGameVM: PlayingGameVM(withRules: ClassicRules(), andPlayer1: HumanPlayer(withName: "Player 1", andId: .player1)!, andPlayer2: HumanPlayer(withName: "Player 2", andId: .player2)!)!)) } if let currentImage = currentImage {