gh-XcodesOrg-XcodesApp/Xcodes/Frontend/XcodeList/XcodeListCategory.swift
Jayson Rhynas 98d1d30328 Add releasePlusNewBetas XcodeListCategory
This adds a new filter option that shows only releases, plus any betas that do not have a release version. So as of today (July 7, 2023 the Xcode 15 betas will be shown but the Xcode 14 betas won't. Note that this will also show betas for older Xcode versions if necessary, for example if an Xcode 14.3.2 beta is released it will be shown until the mainline Xcode 14.3.2 is released.
2023-07-07 10:33:25 -04:00

19 lines
534 B
Swift

import Foundation
enum XcodeListCategory: String, CaseIterable, Identifiable, CustomStringConvertible {
case all
case release
case beta
case releasePlusNewBetas
var id: Self { self }
var description: String {
switch self {
case .all: return localizeString("All")
case .release: return localizeString("Release")
case .beta: return localizeString("Beta")
case .releasePlusNewBetas: return localizeString("ReleasePlusNewBetas")
}
}
}