Skip to content

Commit

Permalink
Screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
p-larson committed Jul 16, 2021
1 parent 13b9be4 commit c6acde1
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 33 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Sources/GameView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct GameView: View {
// Trigger rerendering when the GameState is changed
.id(viewStore.state)
// Prepare the game
// .onAppear { viewStore.send(.reset) }
.onAppear { viewStore.send(.reset) }
.gesture(ControlGesture())
// Pass the ViewStore so our subviews can interact with it.
.alert(
Expand Down
4 changes: 2 additions & 2 deletions Sources/TCASnakeApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ struct TCASnakeApp: App {
store: Store(
initialState: GameState(
initialPosition: Coordinate(row: 0, column: 0),
rows: 30,
columns: 60
rows: 25,
columns: 40
),
reducer: gameReducer.debug(),
environment: GameEnvironment(
Expand Down
31 changes: 12 additions & 19 deletions TCA Snake.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
98902D73269B75E700268871 /* TCASnakeApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98902D65269B75E600268871 /* TCASnakeApp.swift */; };
98902D77269B75E700268871 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 98902D67269B75E700268871 /* Assets.xcassets */; };
98902D89269B76F300268871 /* ComposableArchitecture in Frameworks */ = {isa = PBXBuildFile; productRef = 98902D88269B76F300268871 /* ComposableArchitecture */; };
98C4DAF6269BC79900D21626 /* OMJoystick in Frameworks */ = {isa = PBXBuildFile; productRef = 98C4DAF5269BC79900D21626 /* OMJoystick */; };
98E2D472269DF89E00E42156 /* Coordinate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98E2D471269DF89E00E42156 /* Coordinate.swift */; };
98E2D474269DF8A700E42156 /* Direction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98E2D473269DF8A700E42156 /* Direction.swift */; };
98E2D476269DF8DA00E42156 /* GameAction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98E2D475269DF8DA00E42156 /* GameAction.swift */; };
Expand Down Expand Up @@ -40,19 +39,26 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
98C4DAF6269BC79900D21626 /* OMJoystick in Frameworks */,
98902D89269B76F300268871 /* ComposableArchitecture in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
98643D3326A1070F00A052B9 /* Screenshots */ = {
isa = PBXGroup;
children = (
);
path = Screenshots;
sourceTree = "<group>";
};
98902D5F269B75E600268871 = {
isa = PBXGroup;
children = (
98643D3226A104D700A052B9 /* TCA-Snake-Info.plist */,
986E4B5E269CC79B00251F51 /* Snake.entitlements */,
98643D3326A1070F00A052B9 /* Screenshots */,
98902D64269B75E600268871 /* Sources */,
98902D6D269B75E700268871 /* Products */,
98C4DAF4269BC79900D21626 /* Frameworks */,
Expand Down Expand Up @@ -124,7 +130,6 @@
name = "TCA Snake";
packageProductDependencies = (
98902D88269B76F300268871 /* ComposableArchitecture */,
98C4DAF5269BC79900D21626 /* OMJoystick */,
);
productName = "Snake (iOS)";
productReference = 98902D6C269B75E700268871 /* TCA Snake.app */;
Expand Down Expand Up @@ -156,7 +161,6 @@
mainGroup = 98902D5F269B75E600268871;
packageReferences = (
98902D87269B76F300268871 /* XCRemoteSwiftPackageReference "swift-composable-architecture" */,
98C4DAF3269BC78700D21626 /* XCRemoteSwiftPackageReference "OMJoystick" */,
);
productRefGroup = 98902D6D269B75E700268871 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -253,6 +257,7 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
Expand Down Expand Up @@ -307,6 +312,7 @@
MACOSX_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
Expand All @@ -324,7 +330,7 @@
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "TCA-Snake-Info.plist";
INFOPLIST_KEY_CFBundleExecutable = "TCA-Snake";
INFOPLIST_KEY_CFBundleExecutable = "TCA Snake";
INFOPLIST_KEY_CFBundleName = "TCA Snake";
INFOPLIST_KEY_CFBundleVersion = 1;
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
Expand Down Expand Up @@ -360,7 +366,7 @@
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "TCA-Snake-Info.plist";
INFOPLIST_KEY_CFBundleExecutable = "TCA-Snake";
INFOPLIST_KEY_CFBundleExecutable = "TCA Snake";
INFOPLIST_KEY_CFBundleName = "TCA Snake";
INFOPLIST_KEY_CFBundleVersion = 1;
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
Expand Down Expand Up @@ -417,14 +423,6 @@
minimumVersion = 0.9.0;
};
};
98C4DAF3269BC78700D21626 /* XCRemoteSwiftPackageReference "OMJoystick" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/tichise/OMJoystick";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 0.6.2;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
Expand All @@ -433,11 +431,6 @@
package = 98902D87269B76F300268871 /* XCRemoteSwiftPackageReference "swift-composable-architecture" */;
productName = ComposableArchitecture;
};
98C4DAF5269BC79900D21626 /* OMJoystick */ = {
isa = XCSwiftPackageProductDependency;
package = 98C4DAF3269BC78700D21626 /* XCRemoteSwiftPackageReference "OMJoystick" */;
productName = OMJoystick;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 98902D60269B75E600268871 /* Project object */;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,39 @@
}
},
{
"package": "OMJoystick",
"repositoryURL": "https://github.com/tichise/OMJoystick",
"package": "swift-case-paths",
"repositoryURL": "https://github.com/pointfreeco/swift-case-paths",
"state": {
"branch": null,
"revision": "23f99279323daa7e17652b641fa9342387932e12",
"version": "0.6.2"
"revision": "5904cc74af2890ec34c4bc00fe8d8956c52b1e88",
"version": "0.5.0"
}
},
{
"package": "swift-case-paths",
"repositoryURL": "https://github.com/pointfreeco/swift-case-paths",
"package": "swift-collections",
"repositoryURL": "https://github.com/apple/swift-collections",
"state": {
"branch": null,
"revision": "ac1cf1c35b63d70bf05707ad368c9459f31513ff",
"version": "0.4.0"
"revision": "3426dba9ee5c9f8e4981b0fc9d39a818d36eec28",
"version": "0.0.4"
}
},
{
"package": "swift-composable-architecture",
"repositoryURL": "https://github.com/pointfreeco/swift-composable-architecture",
"state": {
"branch": null,
"revision": "3ca8249bd3262e9837c6cb4d352cc58e370e33fc",
"version": "0.20.0"
"revision": "b4f5d0e3297662a6e26f024f010dc4dd457489a7",
"version": "0.21.0"
}
},
{
"package": "swift-identified-collections",
"repositoryURL": "https://github.com/pointfreeco/swift-identified-collections",
"state": {
"branch": null,
"revision": "edececbdb56b07e9402f2f3f5b907d220a28b4ea",
"version": "0.1.1"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>TCA Snake.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>

0 comments on commit c6acde1

Please sign in to comment.