Files
xcodesApp-mirror/Xcodes/Backend/XcodeInstallState.swift
2021-01-16 13:09:48 -07:00

28 lines
562 B
Swift

import Foundation
import Path
enum XcodeInstallState: Equatable {
case notInstalled
case installing(InstallationStep)
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
}
}
}