import Foundation enum WizardStep: Int, CaseIterable, Identifiable { case macRegistration = 0 case welcome case preflight case supervise case enroll case configure case done var id: Int { rawValue } var title: String { switch self { case .macRegistration: return "Mac registrieren" case .welcome: return "iPhone verbinden" case .preflight: return "Pre-Flight Check" case .supervise: return "Supervisieren" case .enroll: return "MDM-Enrollment" case .configure: return "Schutz aktivieren" case .done: return "Fertig" } } var stepNumber: Int { rawValue + 1 } static var total: Int { allCases.count - 1 } }