| 1234567891011121314151617181920212223242526272829303132 |
- //
- // StatusList.swift
- // Todos
- //
- // Created by Sam Jaffe on 3/7/26.
- //
- import Foundation
- import SwiftData
- @Model // Must be @Model to watch changes to children
- final class StatusList {
- var todo: Bool = true
- var complete: Bool = true
- var inProgess: Bool = true
- var hiatus: Bool = true
- var waiting: Bool = true
- var unknown: Bool = true
-
- init() {}
-
- func test(_ index: Status) -> Bool {
- switch (index) {
- case .todo: return todo
- case .complete: return complete
- case .inProgress: return inProgess
- case .hiatus: return hiatus
- case .waiting: return waiting
- case .unknown: return unknown
- }
- }
- }
|