Skip to content

Commit 863ab45

Browse files
authored
Merge pull request #9 from codeRIT/peter-mainpage
Schedule, Phase 1: UI, and some Login changes
2 parents adc20d3 + 9dc7a70 commit 863ab45

21 files changed

Lines changed: 698 additions & 112 deletions

File tree

BrickHack-Mobile.xcodeproj/project.pbxproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
31C5F541219B29CD00E3E1AF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31C5F540219B29CD00E3E1AF /* AppDelegate.swift */; };
1515
31C5F546219B29CD00E3E1AF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 31C5F544219B29CD00E3E1AF /* Main.storyboard */; };
1616
31C5F548219B29CF00E3E1AF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 31C5F547219B29CF00E3E1AF /* Assets.xcassets */; };
17+
D750E81823DF67360075C639 /* FavoriteButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = D750E81723DF67360075C639 /* FavoriteButton.swift */; };
18+
D789978223D652ED0058060A /* ScheduleTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D789978123D652ED0058060A /* ScheduleTableViewController.swift */; };
19+
D789978523D6A4DC0058060A /* ProfileTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D789978423D6A4DC0058060A /* ProfileTableViewController.swift */; };
1720
D79AA2B823425DFA009C469D /* APIRoutes.swift in Sources */ = {isa = PBXBuildFile; fileRef = D79AA2B723425DFA009C469D /* APIRoutes.swift */; };
1821
D7C07885233EDBA300089193 /* LoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D7C07884233EDBA300089193 /* LoginViewController.swift */; };
1922
D7C41E2523637D650091C480 /* MainTabBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D7C41E2423637D650091C480 /* MainTabBarController.swift */; };
@@ -47,6 +50,9 @@
4750
31C5F54C219B29CF00E3E1AF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4851
31E39209219F765E00F7A3BE /* BrickHack-Mobile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "BrickHack-Mobile.entitlements"; sourceTree = "<group>"; };
4952
C029FC28202ED2177D811FF7 /* Pods-BrickHack-Mobile.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BrickHack-Mobile.debug.xcconfig"; path = "Pods/Target Support Files/Pods-BrickHack-Mobile/Pods-BrickHack-Mobile.debug.xcconfig"; sourceTree = "<group>"; };
53+
D750E81723DF67360075C639 /* FavoriteButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = FavoriteButton.swift; path = "BrickHack-Mobile/Views/FavoriteButton.swift"; sourceTree = SOURCE_ROOT; };
54+
D789978123D652ED0058060A /* ScheduleTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScheduleTableViewController.swift; sourceTree = "<group>"; };
55+
D789978423D6A4DC0058060A /* ProfileTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = ProfileTableViewController.swift; path = "/Users/peterkos/Code/Github/brickhack-mobile-ios/BrickHack-Mobile/Controllers/ProfileTableViewController.swift"; sourceTree = "<absolute>"; };
5056
D79AA2B723425DFA009C469D /* APIRoutes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = APIRoutes.swift; sourceTree = "<group>"; };
5157
D7C07884233EDBA300089193 /* LoginViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginViewController.swift; sourceTree = "<group>"; };
5258
D7C41E2423637D650091C480 /* MainTabBarController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainTabBarController.swift; sourceTree = "<group>"; };
@@ -121,6 +127,8 @@
121127
D7C07884233EDBA300089193 /* LoginViewController.swift */,
122128
D7C41E2423637D650091C480 /* MainTabBarController.swift */,
123129
31602384220A116000F73F58 /* EventsViewController.swift */,
130+
D789978123D652ED0058060A /* ScheduleTableViewController.swift */,
131+
D789978423D6A4DC0058060A /* ProfileTableViewController.swift */,
124132
D7C41E26236383300091C480 /* ResourcesViewController.swift */,
125133
);
126134
path = Controllers;
@@ -137,6 +145,7 @@
137145
D79AA2BB234268D2009C469D /* Views */ = {
138146
isa = PBXGroup;
139147
children = (
148+
D750E81723DF67360075C639 /* FavoriteButton.swift */,
140149
D7D4B036234813A70001DFC5 /* AlertMessage.swift */,
141150
);
142151
path = Views;
@@ -276,10 +285,13 @@
276285
isa = PBXSourcesBuildPhase;
277286
buildActionMask = 2147483647;
278287
files = (
288+
D789978223D652ED0058060A /* ScheduleTableViewController.swift in Sources */,
279289
D7C07885233EDBA300089193 /* LoginViewController.swift in Sources */,
280290
D7C41E2523637D650091C480 /* MainTabBarController.swift in Sources */,
291+
D750E81823DF67360075C639 /* FavoriteButton.swift in Sources */,
281292
D7D4B037234813A70001DFC5 /* AlertMessage.swift in Sources */,
282293
D7C41E27236383300091C480 /* ResourcesViewController.swift in Sources */,
294+
D789978523D6A4DC0058060A /* ProfileTableViewController.swift in Sources */,
283295
31C5F541219B29CD00E3E1AF /* AppDelegate.swift in Sources */,
284296
D79AA2B823425DFA009C469D /* APIRoutes.swift in Sources */,
285297
31602385220A116000F73F58 /* EventsViewController.swift in Sources */,

BrickHack-Mobile.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BrickHack-Mobile/AlertMessage.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ class MessageHandler {
8888
showAlertMessage(withTitle: "Parsing Error",
8989
body: "Error parsing user info from server.",
9090
type: .error)
91+
}
9192

93+
static func showInvalidFavoriteButtonError() {
94+
print("ERROR: Attempted to favorite a non-favorite-button cell.")
95+
showAlertMessage(withTitle: "Unable to favorite",
96+
body: "Please try again later.",
97+
type: .error)
9298
}
9399
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "Star 3.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"filename" : "Star 3@2x.png",
11+
"scale" : "2x"
12+
},
13+
{
14+
"idiom" : "universal",
15+
"filename" : "Star 3@3x.png",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"version" : 1,
21+
"author" : "xcode"
22+
}
23+
}
571 Bytes
Loading
1.04 KB
Loading
1.74 KB
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "Star 2.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"filename" : "Star 2@2x.png",
11+
"scale" : "2x"
12+
},
13+
{
14+
"idiom" : "universal",
15+
"filename" : "Star 2@3x.png",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"version" : 1,
21+
"author" : "xcode"
22+
}
23+
}
505 Bytes
Loading
816 Bytes
Loading

0 commit comments

Comments
 (0)