RIT-Dining/RIT Dining/Data/MenuDietaryRestrictionsModel.swift
NinjaCheetah 32203033b6
Added filtering options to dining menu view
There is now a filter button by the search bar in the menu view for locations! This opens a menu that allows you to filter by diets and to filter out any allergens that you need to avoid. These options are all written to UserDefaults, allowing you to set your options once and have them persist across menus and sessions.
Also started on some refactors, these will be furthered in a later commit.
2025-11-12 00:18:09 -05:00

17 lines
334 B
Swift

//
// MenuDietaryRestrictionsModel.swift
// RIT Dining
//
// Created by Campbell on 11/11/25.
//
import SwiftUI
@Observable
class MenuDietaryRestrictionsModel {
var filteredDietaryMarkers: Set<String> = []
var dietaryRestrictions = DietaryRestrictions()
var isVegetarian: Bool = false
var isVegan: Bool = false
}