Replace all instances of "RIT Dining" with "TigerDine"

The project and some files were still named that way, so that's been fixed now. The bundle ID is stuck that way forever but oh well. Nobody will see that.
This commit is contained in:
2025-12-24 16:41:18 -05:00
parent 6fd11575af
commit 23ebc9d848
47 changed files with 33 additions and 427 deletions

View File

@@ -0,0 +1,37 @@
//
// MenuDietaryRestrictionsModel.swift
// TigerDine
//
// Created by Campbell on 11/11/25.
//
import SwiftUI
class MenuDietaryRestrictionsModel: ObservableObject {
var dietaryRestrictions = DietaryRestrictions()
// I thought these could be @AppStorage keys but apparently not, because SwiftUI would subscribe to updates from those if
// they aren't being used directly inside the view.
@Published var isVegetarian: Bool {
didSet { UserDefaults.standard.set(isVegetarian, forKey: "isVegetarian") }
}
@Published var isVegan: Bool {
didSet { UserDefaults.standard.set(isVegan, forKey: "isVegan") }
}
@Published var noBeef: Bool {
didSet { UserDefaults.standard.set(noBeef, forKey: "noBeef") }
}
@Published var noPork: Bool {
didSet { UserDefaults.standard.set(noPork, forKey: "noPork") }
}
init() {
self.isVegetarian = UserDefaults.standard.bool(forKey: "isVegetarian")
self.isVegan = UserDefaults.standard.bool(forKey: "isVegan")
self.noBeef = UserDefaults.standard.bool(forKey: "noBeef")
self.noPork = UserDefaults.standard.bool(forKey: "noPork")
}
}