diff --git a/DouShouQi_App/DouShouQi_App.xcodeproj/project.pbxproj b/DouShouQi_App/DouShouQi_App.xcodeproj/project.pbxproj index f3215a3..9c24bc8 100644 --- a/DouShouQi_App/DouShouQi_App.xcodeproj/project.pbxproj +++ b/DouShouQi_App/DouShouQi_App.xcodeproj/project.pbxproj @@ -16,9 +16,7 @@ 645834792BF5F92600E18321 /* DouShouQi_AppUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 645834782BF5F92600E18321 /* DouShouQi_AppUITestsLaunchTests.swift */; }; 645834882BF5FEA000E18321 /* DSQ.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 645834872BF5FEA000E18321 /* DSQ.xcframework */; }; 645834892BF5FEA000E18321 /* DSQ.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 645834872BF5FEA000E18321 /* DSQ.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 649ABF5B2BF60D78002E8894 /* MainMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 649ABF5A2BF60D78002E8894 /* MainMenuView.swift */; }; - 649ABF602BF60F2D002E8894 /* MainMenuButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 649ABF5F2BF60F2D002E8894 /* MainMenuButton.swift */; }; - ECDE634F2BF64A9700753917 /* MainButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = ECDE634E2BF64A9700753917 /* MainButton.swift */; }; + ECDE63532BFFD5C900753917 /* SelectPlayerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = ECDE63522BFFD5C900753917 /* SelectPlayerView.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -65,9 +63,7 @@ 645834782BF5F92600E18321 /* DouShouQi_AppUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DouShouQi_AppUITestsLaunchTests.swift; sourceTree = ""; }; 645834852BF5FE1400E18321 /* DouShouQi-App-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = "DouShouQi-App-Info.plist"; sourceTree = SOURCE_ROOT; }; 645834872BF5FEA000E18321 /* DSQ.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = DSQ.xcframework; sourceTree = ""; }; - 649ABF5A2BF60D78002E8894 /* MainMenuView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainMenuView.swift; sourceTree = ""; }; - 649ABF5F2BF60F2D002E8894 /* MainMenuButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainMenuButton.swift; sourceTree = ""; }; - ECDE634E2BF64A9700753917 /* MainButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainButton.swift; sourceTree = ""; }; + ECDE63522BFFD5C900753917 /* SelectPlayerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectPlayerView.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -167,7 +163,7 @@ 649ABF592BF60D13002E8894 /* Views */ = { isa = PBXGroup; children = ( - 649ABF5A2BF60D78002E8894 /* MainMenuView.swift */, + ECDE63522BFFD5C900753917 /* SelectPlayerView.swift */, ); path = Views; sourceTree = ""; @@ -175,8 +171,6 @@ 649ABF5E2BF60ED5002E8894 /* Components */ = { isa = PBXGroup; children = ( - 649ABF5F2BF60F2D002E8894 /* MainMenuButton.swift */, - ECDE634E2BF64A9700753917 /* MainButton.swift */, ); path = Components; sourceTree = ""; @@ -246,7 +240,7 @@ attributes = { BuildIndependentTargetsInParallel = 1; LastSwiftUpdateCheck = 1420; - LastUpgradeCheck = 1420; + LastUpgradeCheck = 1510; TargetAttributes = { 645834572BF5F92300E18321 = { CreatedOnToolsVersion = 14.2; @@ -313,10 +307,8 @@ buildActionMask = 2147483647; files = ( 6458345E2BF5F92300E18321 /* ContentView.swift in Sources */, - ECDE634F2BF64A9700753917 /* MainButton.swift in Sources */, - 649ABF602BF60F2D002E8894 /* MainMenuButton.swift in Sources */, + ECDE63532BFFD5C900753917 /* SelectPlayerView.swift in Sources */, 6458345C2BF5F92300E18321 /* DouShouQi_AppApp.swift in Sources */, - 649ABF5B2BF60D78002E8894 /* MainMenuView.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -389,6 +381,7 @@ DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; @@ -449,6 +442,7 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; diff --git a/DouShouQi_App/DouShouQi_App/Views/SelectPlayerView.swift b/DouShouQi_App/DouShouQi_App/Views/SelectPlayerView.swift new file mode 100644 index 0000000..685b190 --- /dev/null +++ b/DouShouQi_App/DouShouQi_App/Views/SelectPlayerView.swift @@ -0,0 +1,32 @@ +// +// SelectPlayerView.swift +// DouShouQi_App +// +// Created by etudiant on 23/05/2024. +// + +import SwiftUI + +struct SelectPlayerView: View { + var body: some View { + VStack { + Text("Coucou!") + Button(action: { + // Ajoutez ici l'action à effectuer lorsque le bouton est pressé + print("Bouton pressé!") + }) { + Text("Mon Bouton") + .padding() + .background(Color.blue) + .foregroundColor(.white) + .cornerRadius(10) + } + } + } +} + +struct SelectPlayerViewPreviews: PreviewProvider { + static var previews: some View { + SelectPlayerView() + } +}