Skip to content

Commit 09793e5

Browse files
committed
Minor tweaks to logic for promotions
1 parent 8f65491 commit 09793e5

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

TCAT/AppDelegate.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2525
let userDataInits: [(key: String, defaultValue: Any)] = [
2626
(key: Constants.UserDefaults.onboardingShown, defaultValue: false),
2727
(key: Constants.UserDefaults.recentSearch, defaultValue: [Any]()),
28-
(key: Constants.UserDefaults.favorites, defaultValue: [Any]()),
29-
(key: Constants.UserDefaults.whatsNewDismissed, defaultValue: false),
30-
(key: Constants.UserDefaults.promotionDismissed, defaultValue: false)
28+
(key: Constants.UserDefaults.favorites, defaultValue: [Any]())
3129
]
3230

3331
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

TCAT/Controllers/HomeViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ class HomeViewController: UIViewController {
225225
}
226226

227227
func createWhatsNewView(from card: WhatsNewCard, hasPromotion: Bool) {
228-
userDefaults.set(false, forKey: Constants.UserDefaults.whatsNewDismissed)
229228
whatsNewView = WhatsNewHeaderView(card: card, isPromotion: hasPromotion)
230229
whatsNewView.whatsNewDelegate = self
231230
whatsNewContainerView = UIView(frame: .init(x: 0, y: 0, width: UIScreen.main.bounds.width, height: whatsNewView.calculateCardHeight() + whatsNewView.containerPadding.top + whatsNewView.containerPadding.bottom))

0 commit comments

Comments
 (0)