mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2025-12-25 12:14:17 +01:00
29 lines
584 B
Swift
29 lines
584 B
Swift
import Foundation
|
|
import Path
|
|
import XcodesKit
|
|
|
|
enum XcodeInstallState: Equatable {
|
|
case notInstalled
|
|
case installing(XcodeInstallationStep)
|
|
case installed(Path)
|
|
|
|
var notInstalled: Bool {
|
|
switch self {
|
|
case .notInstalled: return true
|
|
default: return false
|
|
}
|
|
}
|
|
var installing: Bool {
|
|
switch self {
|
|
case .installing: return true
|
|
default: return false
|
|
}
|
|
}
|
|
var installed: Bool {
|
|
switch self {
|
|
case .installed: return true
|
|
default: return false
|
|
}
|
|
}
|
|
}
|