diff --git a/Spotti/Spotti.xcodeproj/project.pbxproj b/Spotti/Spotti.xcodeproj/project.pbxproj index fac7df6..bcd669a 100644 --- a/Spotti/Spotti.xcodeproj/project.pbxproj +++ b/Spotti/Spotti.xcodeproj/project.pbxproj @@ -52,6 +52,8 @@ C08DE670289D8895009B82C8 /* MilestoneViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C08DE66F289D8895009B82C8 /* MilestoneViewController.m */; }; C08DE673289D8BB2009B82C8 /* MilestoneCell.m in Sources */ = {isa = PBXBuildFile; fileRef = C08DE672289D8BB2009B82C8 /* MilestoneCell.m */; }; C08DE676289D9480009B82C8 /* MilestoneCreatorViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C08DE675289D9480009B82C8 /* MilestoneCreatorViewController.m */; }; + C08DE67828A43773009B82C8 /* exercise.png in Resources */ = {isa = PBXBuildFile; fileRef = C08DE67728A43772009B82C8 /* exercise.png */; }; + C08DE67A28A43892009B82C8 /* plan.png in Resources */ = {isa = PBXBuildFile; fileRef = C08DE67928A43892009B82C8 /* plan.png */; }; C0E57F39289362E600AEDEC6 /* ExerciseDetailSegue.m in Sources */ = {isa = PBXBuildFile; fileRef = C0E57F38289362E600AEDEC6 /* ExerciseDetailSegue.m */; }; C0F6FBBF28998E03006B0EA7 /* sour-moha-rb5uiqzCOTo-unsplash.jpg in Resources */ = {isa = PBXBuildFile; fileRef = C0F6FBBE28998E03006B0EA7 /* sour-moha-rb5uiqzCOTo-unsplash.jpg */; }; /* End PBXBuildFile section */ @@ -158,6 +160,8 @@ C08DE672289D8BB2009B82C8 /* MilestoneCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MilestoneCell.m; sourceTree = ""; }; C08DE674289D9480009B82C8 /* MilestoneCreatorViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MilestoneCreatorViewController.h; sourceTree = ""; }; C08DE675289D9480009B82C8 /* MilestoneCreatorViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MilestoneCreatorViewController.m; sourceTree = ""; }; + C08DE67728A43772009B82C8 /* exercise.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = exercise.png; path = ../../../../../Downloads/exercise.png; sourceTree = ""; }; + C08DE67928A43892009B82C8 /* plan.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = plan.png; path = ../../../../../Downloads/plan.png; sourceTree = ""; }; C0E57F37289362E600AEDEC6 /* ExerciseDetailSegue.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ExerciseDetailSegue.h; sourceTree = ""; }; C0E57F38289362E600AEDEC6 /* ExerciseDetailSegue.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ExerciseDetailSegue.m; sourceTree = ""; }; C0F6FBBE28998E03006B0EA7 /* sour-moha-rb5uiqzCOTo-unsplash.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; name = "sour-moha-rb5uiqzCOTo-unsplash.jpg"; path = "../../../../../Downloads/sour-moha-rb5uiqzCOTo-unsplash.jpg"; sourceTree = ""; }; @@ -245,6 +249,8 @@ C0672346287612AD00F91288 /* SceneDelegate.m */, C067234B287612AD00F91288 /* Main.storyboard */, C067234E287612AE00F91288 /* Assets.xcassets */, + C08DE67928A43892009B82C8 /* plan.png */, + C08DE67728A43772009B82C8 /* exercise.png */, C0F6FBBE28998E03006B0EA7 /* sour-moha-rb5uiqzCOTo-unsplash.jpg */, C0672350287612AE00F91288 /* LaunchScreen.storyboard */, C0672353287612AE00F91288 /* Info.plist */, @@ -481,6 +487,8 @@ buildActionMask = 2147483647; files = ( C0672352287612AE00F91288 /* LaunchScreen.storyboard in Resources */, + C08DE67828A43773009B82C8 /* exercise.png in Resources */, + C08DE67A28A43892009B82C8 /* plan.png in Resources */, C067234F287612AE00F91288 /* Assets.xcassets in Resources */, C067234D287612AD00F91288 /* Main.storyboard in Resources */, C0F6FBBF28998E03006B0EA7 /* sour-moha-rb5uiqzCOTo-unsplash.jpg in Resources */, diff --git a/Spotti/Spotti/API/APIManager.m b/Spotti/Spotti/API/APIManager.m index 08b8d77..dd71b8e 100644 --- a/Spotti/Spotti/API/APIManager.m +++ b/Spotti/Spotti/API/APIManager.m @@ -94,7 +94,7 @@ - (void)exerciseListFromWorkout:(Workout*) workout currentExercise:(int) current int numExercisesPerArea = totalExercises/(workout.focusAreas.count); NSMutableArray *exercises = [NSMutableArray new]; for(int i = 0; i < workout.focusAreas.count; i++){ - NSArray *currentExerciseNumbers = self.muscleNumbers[workout.focusAreas[i]]; + NSArray *currentExerciseNumbers = self.muscleNumbers[[[NSString stringWithString:workout.focusAreas[i]] stringByReplacingOccurrencesOfString:@" " withString:@""]]; NSArray *filteredArray = [results filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictionary* binding){ for(NSNumber* num in evaluatedObject[@"muscles"]){ if([currentExerciseNumbers containsObject:num]){ diff --git a/Spotti/Spotti/Assets.xcassets/biceps.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/biceps.imageset/Contents.json new file mode 100644 index 0000000..35c27af --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/biceps.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "biceps.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/biceps.imageset/biceps.png b/Spotti/Spotti/Assets.xcassets/biceps.imageset/biceps.png new file mode 100644 index 0000000..24044b7 Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/biceps.imageset/biceps.png differ diff --git a/Spotti/Spotti/Assets.xcassets/body-part.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/body-part.imageset/Contents.json new file mode 100644 index 0000000..2a58745 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/body-part.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "body-part.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/body-part.imageset/body-part.png b/Spotti/Spotti/Assets.xcassets/body-part.imageset/body-part.png new file mode 100644 index 0000000..9cccd1a Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/body-part.imageset/body-part.png differ diff --git a/Spotti/Spotti/Assets.xcassets/body.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/body.imageset/Contents.json new file mode 100644 index 0000000..4886efb --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/body.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "body.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/body.imageset/body.png b/Spotti/Spotti/Assets.xcassets/body.imageset/body.png new file mode 100644 index 0000000..7a0e27f Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/body.imageset/body.png differ diff --git a/Spotti/Spotti/Assets.xcassets/excercise.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/excercise.imageset/Contents.json new file mode 100644 index 0000000..4e7c1d4 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/excercise.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "excercise.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/excercise.imageset/excercise.png b/Spotti/Spotti/Assets.xcassets/excercise.imageset/excercise.png new file mode 100644 index 0000000..53635d8 Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/excercise.imageset/excercise.png differ diff --git a/Spotti/Spotti/Assets.xcassets/exercise.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/exercise.imageset/Contents.json new file mode 100644 index 0000000..7e596a1 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/exercise.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "exercise.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/exercise.imageset/exercise.png b/Spotti/Spotti/Assets.xcassets/exercise.imageset/exercise.png new file mode 100644 index 0000000..a7b3666 Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/exercise.imageset/exercise.png differ diff --git a/Spotti/Spotti/Assets.xcassets/fire.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/fire.imageset/Contents.json new file mode 100644 index 0000000..718503e --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/fire.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "fire.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/fire.imageset/fire.png b/Spotti/Spotti/Assets.xcassets/fire.imageset/fire.png new file mode 100644 index 0000000..84f89d8 Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/fire.imageset/fire.png differ diff --git a/Spotti/Spotti/Assets.xcassets/fitness.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/fitness.imageset/Contents.json new file mode 100644 index 0000000..6cceec1 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/fitness.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "fitness.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/fitness.imageset/fitness.png b/Spotti/Spotti/Assets.xcassets/fitness.imageset/fitness.png new file mode 100644 index 0000000..7e74a0e Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/fitness.imageset/fitness.png differ diff --git a/Spotti/Spotti/Assets.xcassets/flag (1).imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/flag (1).imageset/Contents.json new file mode 100644 index 0000000..a701a9e --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/flag (1).imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "flag (1).png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/flag (1).imageset/flag (1).png b/Spotti/Spotti/Assets.xcassets/flag (1).imageset/flag (1).png new file mode 100644 index 0000000..a76434d Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/flag (1).imageset/flag (1).png differ diff --git a/Spotti/Spotti/Assets.xcassets/jogging.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/jogging.imageset/Contents.json new file mode 100644 index 0000000..f1a830f --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/jogging.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "jogging.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/jogging.imageset/jogging.png b/Spotti/Spotti/Assets.xcassets/jogging.imageset/jogging.png new file mode 100644 index 0000000..a844845 Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/jogging.imageset/jogging.png differ diff --git a/Spotti/Spotti/Assets.xcassets/leg.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/leg.imageset/Contents.json new file mode 100644 index 0000000..fd3fc42 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/leg.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "leg.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/leg.imageset/leg.png b/Spotti/Spotti/Assets.xcassets/leg.imageset/leg.png new file mode 100644 index 0000000..ff486b3 Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/leg.imageset/leg.png differ diff --git a/Spotti/Spotti/Assets.xcassets/lunges.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/lunges.imageset/Contents.json new file mode 100644 index 0000000..f83a408 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/lunges.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "lunges.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/lunges.imageset/lunges.png b/Spotti/Spotti/Assets.xcassets/lunges.imageset/lunges.png new file mode 100644 index 0000000..d199fc7 Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/lunges.imageset/lunges.png differ diff --git a/Spotti/Spotti/Assets.xcassets/medals.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/medals.imageset/Contents.json new file mode 100644 index 0000000..c932366 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/medals.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "medals.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/medals.imageset/medals.png b/Spotti/Spotti/Assets.xcassets/medals.imageset/medals.png new file mode 100644 index 0000000..7313eeb Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/medals.imageset/medals.png differ diff --git a/Spotti/Spotti/Assets.xcassets/muscle.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/muscle.imageset/Contents.json new file mode 100644 index 0000000..3650ed2 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/muscle.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "muscle.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/muscle.imageset/muscle.png b/Spotti/Spotti/Assets.xcassets/muscle.imageset/muscle.png new file mode 100644 index 0000000..ad8c783 Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/muscle.imageset/muscle.png differ diff --git a/Spotti/Spotti/Assets.xcassets/old-people.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/old-people.imageset/Contents.json new file mode 100644 index 0000000..edcde7f --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/old-people.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "old-people.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/old-people.imageset/old-people.png b/Spotti/Spotti/Assets.xcassets/old-people.imageset/old-people.png new file mode 100644 index 0000000..d3c25dd Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/old-people.imageset/old-people.png differ diff --git a/Spotti/Spotti/Assets.xcassets/plan (1).imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/plan (1).imageset/Contents.json new file mode 100644 index 0000000..d2ea1dc --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/plan (1).imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "plan (1).png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/plan (1).imageset/plan (1).png b/Spotti/Spotti/Assets.xcassets/plan (1).imageset/plan (1).png new file mode 100644 index 0000000..6a01d14 Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/plan (1).imageset/plan (1).png differ diff --git a/Spotti/Spotti/Assets.xcassets/plan.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/plan.imageset/Contents.json new file mode 100644 index 0000000..60209a7 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/plan.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "plan.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/plan.imageset/plan.png b/Spotti/Spotti/Assets.xcassets/plan.imageset/plan.png new file mode 100644 index 0000000..3a76ec6 Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/plan.imageset/plan.png differ diff --git a/Spotti/Spotti/Assets.xcassets/shoulder.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/shoulder.imageset/Contents.json new file mode 100644 index 0000000..305c052 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/shoulder.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "shoulder.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/shoulder.imageset/shoulder.png b/Spotti/Spotti/Assets.xcassets/shoulder.imageset/shoulder.png new file mode 100644 index 0000000..39e488c Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/shoulder.imageset/shoulder.png differ diff --git a/Spotti/Spotti/Assets.xcassets/stretching.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/stretching.imageset/Contents.json new file mode 100644 index 0000000..6fd64bb --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/stretching.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "stretching.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/stretching.imageset/stretching.png b/Spotti/Spotti/Assets.xcassets/stretching.imageset/stretching.png new file mode 100644 index 0000000..7c365c1 Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/stretching.imageset/stretching.png differ diff --git a/Spotti/Spotti/Assets.xcassets/triceps.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/triceps.imageset/Contents.json new file mode 100644 index 0000000..bf22475 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/triceps.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "triceps.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/triceps.imageset/triceps.png b/Spotti/Spotti/Assets.xcassets/triceps.imageset/triceps.png new file mode 100644 index 0000000..798103c Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/triceps.imageset/triceps.png differ diff --git a/Spotti/Spotti/Assets.xcassets/weightlifting (1).imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/weightlifting (1).imageset/Contents.json new file mode 100644 index 0000000..7a61ce7 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/weightlifting (1).imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "weightlifting (1).png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/weightlifting (1).imageset/weightlifting (1).png b/Spotti/Spotti/Assets.xcassets/weightlifting (1).imageset/weightlifting (1).png new file mode 100644 index 0000000..9d6144c Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/weightlifting (1).imageset/weightlifting (1).png differ diff --git a/Spotti/Spotti/Assets.xcassets/weightlifting.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/weightlifting.imageset/Contents.json new file mode 100644 index 0000000..52af3a0 --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/weightlifting.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "weightlifting.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/weightlifting.imageset/weightlifting.png b/Spotti/Spotti/Assets.xcassets/weightlifting.imageset/weightlifting.png new file mode 100644 index 0000000..79c2c38 Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/weightlifting.imageset/weightlifting.png differ diff --git a/Spotti/Spotti/Assets.xcassets/weights.imageset/Contents.json b/Spotti/Spotti/Assets.xcassets/weights.imageset/Contents.json new file mode 100644 index 0000000..1e2c8fc --- /dev/null +++ b/Spotti/Spotti/Assets.xcassets/weights.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "weights.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Spotti/Spotti/Assets.xcassets/weights.imageset/weights.png b/Spotti/Spotti/Assets.xcassets/weights.imageset/weights.png new file mode 100644 index 0000000..3a1ad4c Binary files /dev/null and b/Spotti/Spotti/Assets.xcassets/weights.imageset/weights.png differ diff --git a/Spotti/Spotti/Base.lproj/LaunchScreen.storyboard b/Spotti/Spotti/Base.lproj/LaunchScreen.storyboard index beaa8bb..27590df 100644 --- a/Spotti/Spotti/Base.lproj/LaunchScreen.storyboard +++ b/Spotti/Spotti/Base.lproj/LaunchScreen.storyboard @@ -16,8 +16,8 @@ - - + + @@ -31,7 +31,7 @@ - + diff --git a/Spotti/Spotti/Base.lproj/Main.storyboard b/Spotti/Spotti/Base.lproj/Main.storyboard index f30de19..17a64e8 100644 --- a/Spotti/Spotti/Base.lproj/Main.storyboard +++ b/Spotti/Spotti/Base.lproj/Main.storyboard @@ -29,38 +29,38 @@ - + + + + - - - + + + - + @@ -92,7 +92,7 @@ - - - + + + + - + - - - - + + + - + - - + + + - + - + + - + - + + - - + + - + - + - + - - + + - - + + - - + + + - + @@ -273,7 +282,7 @@ - + @@ -288,7 +297,7 @@ - - - - - + @@ -556,7 +580,7 @@ - + @@ -600,7 +624,7 @@ - + @@ -647,8 +671,10 @@ - + - + + @@ -678,10 +705,9 @@ - + - - + @@ -691,27 +717,27 @@ @@ -723,7 +749,7 @@ @@ -731,7 +757,7 @@ - + @@ -746,10 +772,10 @@ - + - + @@ -768,32 +794,50 @@ - - + + + + + + + + + + + + + + + + @@ -832,56 +876,42 @@ - - - - - + @@ -924,7 +968,7 @@ - + @@ -934,61 +978,50 @@ - - - - - + - + @@ -1036,7 +1081,7 @@ - + @@ -1092,11 +1137,18 @@ + - + - + @@ -1137,14 +1189,6 @@ - - - - - - - - @@ -1167,7 +1211,7 @@ - + @@ -1191,13 +1235,17 @@ - - + + - + + + + + - + @@ -1237,11 +1285,7 @@ - - - - - + @@ -1253,13 +1297,13 @@ - - + + + + + - + @@ -1656,11 +1698,13 @@ + + @@ -1690,27 +1734,38 @@ - - - + + + + + - - + + + + + + + + + + + + @@ -1742,7 +1797,7 @@ - + @@ -1758,7 +1813,7 @@ - + @@ -1777,13 +1832,13 @@ @@ -1801,7 +1856,7 @@ - + @@ -1814,7 +1869,7 @@ - + @@ -1825,7 +1880,7 @@ - + @@ -1836,7 +1891,7 @@ - + @@ -1888,41 +1943,37 @@ - + @@ -1949,48 +2000,53 @@ - + + + + + + + + + + + + + - + - + - - - - + + + + - - + + - - - - - + @@ -2064,7 +2120,7 @@ - + @@ -2138,15 +2194,34 @@ - + + + + + + + + - - + + + + + + + + + + + + + + @@ -2159,8 +2234,5 @@ - - - diff --git a/Spotti/Spotti/Models/Milestone.m b/Spotti/Spotti/Models/Milestone.m index 2433363..0f42f15 100644 --- a/Spotti/Spotti/Models/Milestone.m +++ b/Spotti/Spotti/Models/Milestone.m @@ -44,7 +44,7 @@ - (void) update:(Workout *)workout { } } } - if([self.currentHighestReps intValue] >= [self.repGoal intValue] && [self.currentHighestWeight intValue] >= [self.repGoal intValue]){ + if([self.currentHighestReps intValue] >= [self.repGoal intValue] && [self.currentHighestWeight intValue] >= [self.weightGoal intValue]){ self.inProgress = [NSNumber numberWithBool:NO]; } [self saveInBackgroundWithBlock:^(BOOL succeeded, NSError * _Nullable error) { diff --git a/Spotti/Spotti/View Controllers/FocusAreaViewController.m b/Spotti/Spotti/View Controllers/FocusAreaViewController.m index 160b502..bbd7f33 100644 --- a/Spotti/Spotti/View Controllers/FocusAreaViewController.m +++ b/Spotti/Spotti/View Controllers/FocusAreaViewController.m @@ -57,6 +57,7 @@ - (IBAction)didTapShoulders:(UIButton *)sender { - (IBAction)didTapNext:(UIButton *)sender { self.currentWorkout.focusAreas = [self.areas allObjects]; + NSLog(@"wwf %@",self.currentWorkout.focusAreas); [self performSegueWithIdentifier:@"showFrequencySegue" sender:nil]; } diff --git a/Spotti/Spotti/View Controllers/HomeViewController.m b/Spotti/Spotti/View Controllers/HomeViewController.m index 535ff0a..beedf3d 100644 --- a/Spotti/Spotti/View Controllers/HomeViewController.m +++ b/Spotti/Spotti/View Controllers/HomeViewController.m @@ -209,7 +209,7 @@ - (UIView *)makeViewforStackView:(Exercise *)exercise friendView:(GymUser *)frie [newView.heightAnchor constraintEqualToConstant:self.friendStackView.frame.size.height/3].active = true; [newView.widthAnchor constraintEqualToConstant:20].active = true; newView.layer.cornerRadius = 5; - UILabel *name = [[UILabel alloc] initWithFrame:CGRectMake(70, newView.frame.size.height/2, 40, 30)]; + UILabel *name = [[UILabel alloc] initWithFrame:CGRectMake(70, newView.frame.size.height/2, 70, 30)]; UILabel *gymName = [[UILabel alloc] initWithFrame:CGRectMake(140, newView.frame.size.height/2, 40, 30)]; PFImageView *profilePic = [[PFImageView alloc] initWithFrame:CGRectMake(5, newView.frame.size.height/2 + 5, 50, 30)]; newView.layer.borderWidth = 2; diff --git a/Spotti/Spotti/View Controllers/MilestoneCreatorViewController.m b/Spotti/Spotti/View Controllers/MilestoneCreatorViewController.m index 9451253..5ec3c33 100644 --- a/Spotti/Spotti/View Controllers/MilestoneCreatorViewController.m +++ b/Spotti/Spotti/View Controllers/MilestoneCreatorViewController.m @@ -19,6 +19,7 @@ @interface MilestoneCreatorViewController ()