diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7f30ec..0e67168 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,11 +8,11 @@ on: jobs: Build_Test-Swift: - runs-on: macos-13 + runs-on: macos-14 steps: - uses: actions/checkout@v3 - name: Select Xcode version - run: sudo xcode-select -s '/Applications/Xcode_15.0.app/Contents/Developer' + run: sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer' - name: Swift Version run: swift --version - name: Build using Xcode diff --git a/README.md b/README.md index d6fd0eb..6b61048 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,11 @@ There are no "helper" functions or dependences. ## Available Examples General -1. [User Input](Sources/_01_UserInput/UserInput.swift): +1. [User Input](Sources/G_01_UserInput/UserInput.swift): Show text when using certain user inputs. -2. [Multiple Windows](Sources/_02_MultipleWindows/MultipleWindows.swift): +2. [Multiple Windows](Sources/G_02_MultipleWindows/MultipleWindows.swift): Open multiple windows on compatible platforms. -3. [Save State](Sources/_03_SavingState/SavingState.swift): +3. [Save State](Sources/G_03_SavingState/SavingState.swift): Save and restore game state. 2D diff --git a/Sources/G_01_UserInput/UserInput.swift b/Sources/G_01_UserInput/UserInput.swift index a5fcbc4..285067d 100644 --- a/Sources/G_01_UserInput/UserInput.swift +++ b/Sources/G_01_UserInput/UserInput.swift @@ -31,6 +31,7 @@ final class UserInputGameDelegate: GameDelegate { final class TextComponent: Component { // Text is a renderable object that hold a string and associated meta like font, pointSize, and color + @MainActor let text = Text(string: "Press Something...", pointSize: 64, color: .white) // All components require a componentID. For performance reasons make it a let. diff --git a/Xcode/GateEngineDemos.xcodeproj/project.pbxproj b/Xcode/GateEngineDemos.xcodeproj/project.pbxproj index 2695403..a41fe5e 100644 --- a/Xcode/GateEngineDemos.xcodeproj/project.pbxproj +++ b/Xcode/GateEngineDemos.xcodeproj/project.pbxproj @@ -88,7 +88,8 @@ children = ( 5677A8652A279C1000BD0456 /* UserInput.swift */, ); - path = G_01_UserInput; + name = G_01_UserInput; + path = ../Sources/G_01_UserInput; sourceTree = ""; }; 5677A8672A279C4200BD0456 /* Packages */ = { @@ -104,7 +105,8 @@ children = ( 569C5E662A32C5A2009CC52B /* MultipleWindows.swift */, ); - path = G_02_MultipleWindows; + name = G_02_MultipleWindows; + path = ../Sources/G_02_MultipleWindows; sourceTree = ""; }; 56D155472A2A487800FDB7AC /* Shared */ = {