Files
xcodesApp-mirror/Xcodes/Backend/XcodeInstallState.swift
Matt Kiazyk 6ffce23616 more WIP
2023-11-23 10:37:41 -06:00

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
}
}
}