import Foundation enum DataRefreshMode: String, CaseIterable, Identifiable { case standard case smart var id: String { rawValue } var displayName: String { switch self { case .standard: return "Standard" case .smart: return "Smart" } } var summary: String { switch self { case .standard: return "Saves battery by checking for new prices up to twice a day." case .smart: return "Checks for new prices more often, keeping your data fresher." } } }