mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
34 lines
648 B
Swift
34 lines
648 B
Swift
//
|
|
// InstallState.swift
|
|
//
|
|
//
|
|
// Created by Matt Kiazyk on 2023-06-06.
|
|
//
|
|
|
|
import Foundation
|
|
import Path
|
|
|
|
public 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
|
|
}
|
|
}
|
|
}
|