Ratul SarnaFormat Swift sources14662849 months agoHistory
28 lines · 660 B · Swift
RawDownload
import Foundation /// Controls what the menu bar displays when brand icon mode is enabled.enum MenuBarDisplayMode: String, CaseIterable, Identifiable {    case percent    case pace    case both     var id: String {        self.rawValue    }     var label: String {        switch self {        case .percent: "Percent"        case .pace: "Pace"        case .both: "Both"        }    }     var description: String {        switch self {        case .percent: "Show remaining/used percentage (e.g. 45%)"        case .pace: "Show pace indicator (e.g. +5%)"        case .both: "Show both percentage and pace (e.g. 45% · +5%)"        }    }}