mirror of
https://github.com/NinjaCheetah/RIT-Dining.git
synced 2025-12-02 01:21:35 -05:00
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.
17 lines
334 B
Swift
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
|
|
}
|