mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-26 09:05:46 +00:00
34 lines
651 B
Swift
34 lines
651 B
Swift
//
|
|
// RuntimeInstallState.swift
|
|
//
|
|
//
|
|
// Created by Matt Kiazyk on 2023-11-23.
|
|
//
|
|
|
|
import Foundation
|
|
import Path
|
|
|
|
public enum RuntimeInstallState: Equatable {
|
|
case notInstalled
|
|
case installing(RuntimeInstallationStep)
|
|
case installed
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|