Skip to content

Commit

Permalink
refactor: generalize first four loop for future expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
mvirgo committed Mar 15, 2021
1 parent aa67115 commit 7bced20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions foam-madness.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,15 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = 5X3GA242G5;
INFOPLIST_FILE = "foam-madness/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2;
MARKETING_VERSION = 1.3;
PRODUCT_BUNDLE_IDENTIFIER = "com.mvirgo.foam-madness";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -462,15 +462,15 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 6;
CURRENT_PROJECT_VERSION = 7;
DEVELOPMENT_TEAM = 5X3GA242G5;
INFOPLIST_FILE = "foam-madness/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2;
MARKETING_VERSION = 1.3;
PRODUCT_BUNDLE_IDENTIFIER = "com.mvirgo.foam-madness";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down
4 changes: 2 additions & 2 deletions foam-madness/Controller/BracketCreationViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ class BracketCreationViewController: UIViewController, UITextFieldDelegate {
}

func createFirstFour() {
// Create all four games
for i in 0...3 {
// Create all First Four games
for i in 0...firstFour.count - 1 {
let game = Game(context: context)
let gameInfo = firstFour[String(i)]!
game.round = 0
Expand Down

0 comments on commit 7bced20

Please sign in to comment.