mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
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.
19 lines
534 B
Swift
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")
|
|
}
|
|
}
|
|
}
|