| 12345678910111213141516171819202122232425262728293031323334 |
- //
- // Status.swift
- // Todos
- //
- // Created by Sam Jaffe on 3/5/26.
- //
- import Foundation
- enum Status: String, CaseIterable, Identifiable, Codable {
- case Todo = " "
- case Complete = "V"
- case InProgress = "C"
- case Hiatus = "H"
- case Waiting = "R"
- var id: Self { self }
- var description: String { self.rawValue }
- var isStrong: Bool {
- self == .Complete || self == .Hiatus || self == .Waiting
- }
- var label: String {
- switch self {
- case .Todo: return "square.and.pencil"
- case .Complete: return "checkmark"
- case .InProgress: return "ellipsis.circle"
- case .Hiatus: return "clock.badge.questionmark"
- case .Waiting: return "airplane.circle"
- }
- }
- }
|