| 123456789101112131415161718192021222324252627282930313233 |
- //
- // Priority.swift
- // Todos
- //
- // Created by Sam Jaffe on 3/7/26.
- //
- import Foundation
- import SwiftUI
- enum Priority: String, CaseIterable, Identifiable, Codable {
- case low = "Low"
- case medium = "Medium"
- case high = "High"
- var id: String { self.rawValue }
- var label: String {
- switch self {
- case .low: return "chevron.down"
- case .medium: return "chevron.up"
- case .high: return "chevron.up.2"
- }
- }
- var style: some ShapeStyle {
- switch self {
- case .low: return .green
- case .medium: return .orange
- case .high: return .red
- }
- }
- }
|