Skip to content

Commit

Permalink
Stashing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anushkasankaran committed Feb 27, 2025
1 parent d206868 commit 5379d7c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions HackIllinois.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2025.1.2;
MARKETING_VERSION = 2025.1.3;
ONLY_ACTIVE_ARCH = YES;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" -Xfrontend -warn-long-expression-type-checking=150";
PRODUCT_BUNDLE_IDENTIFIER = org.hackillinois.ios;
Expand Down Expand Up @@ -1417,7 +1417,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2025.1.2;
MARKETING_VERSION = 2025.1.3;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = org.hackillinois.ios;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
15 changes: 8 additions & 7 deletions HackIllinois/ViewControllers/HIScheduleViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,15 @@ extension HIScheduleViewController {
}

func currentPredicate() -> NSPredicate {
if onlyShifts {
// Return a predicate that matches no events when in shifts view
return NSPredicate(value: false)
} else if onlyFavorites {
let currentTabPredicate = dataStore[currentTab].predicate
return NSCompoundPredicate(andPredicateWithSubpredicates: [currentTabPredicate, onlyFavoritesPredicate])
let currentTabPredicate = dataStore[currentTab].predicate
if onlyFavorites {
let compoundPredicate = NSCompoundPredicate(andPredicateWithSubpredicates: [currentTabPredicate, onlyFavoritesPredicate])
return compoundPredicate
} else if onlyShifts {
let noEventsPredicate = NSPredicate(value: false)
return noEventsPredicate
} else {
return dataStore[currentTab].predicate
return currentTabPredicate
}
}

Expand Down

0 comments on commit 5379d7c

Please sign in to comment.