From 4005e50e3b713d23d2b2388b4d85e586d670653d Mon Sep 17 00:00:00 2001 From: Davide Date: Mon, 25 Nov 2024 21:48:28 +0100 Subject: [PATCH] Rename to OnboardingStep --- .../AppUIMain/Views/App/AppLaunchModifier.swift | 2 +- .../Domain/{AppStep.swift => OnboardingStep.swift} | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) rename Passepartout/Library/Sources/CommonLibrary/Domain/{AppStep.swift => OnboardingStep.swift} (84%) diff --git a/Passepartout/Library/Sources/AppUIMain/Views/App/AppLaunchModifier.swift b/Passepartout/Library/Sources/AppUIMain/Views/App/AppLaunchModifier.swift index 7df4f4527..7b295b84c 100644 --- a/Passepartout/Library/Sources/AppUIMain/Views/App/AppLaunchModifier.swift +++ b/Passepartout/Library/Sources/AppUIMain/Views/App/AppLaunchModifier.swift @@ -30,7 +30,7 @@ import SwiftUI struct AppLaunchModifier: ViewModifier { @AppStorage(AppPreference.appStep.key) - private var appStep: AppStep? + private var appStep: OnboardingStep? @Binding var modalRoute: AppCoordinator.ModalRoute? diff --git a/Passepartout/Library/Sources/CommonLibrary/Domain/AppStep.swift b/Passepartout/Library/Sources/CommonLibrary/Domain/OnboardingStep.swift similarity index 84% rename from Passepartout/Library/Sources/CommonLibrary/Domain/AppStep.swift rename to Passepartout/Library/Sources/CommonLibrary/Domain/OnboardingStep.swift index cf60efabc..d753e994f 100644 --- a/Passepartout/Library/Sources/CommonLibrary/Domain/AppStep.swift +++ b/Passepartout/Library/Sources/CommonLibrary/Domain/OnboardingStep.swift @@ -1,5 +1,5 @@ // -// AppStep.swift +// OnboardingStep.swift // Passepartout // // Created by Davide De Rosa on 11/25/24. @@ -25,7 +25,7 @@ import Foundation -public enum AppStep: String, RawRepresentable, CaseIterable { +public enum OnboardingStep: String, RawRepresentable, CaseIterable { case migrateV3 case community @@ -33,9 +33,9 @@ public enum AppStep: String, RawRepresentable, CaseIterable { case doneV3 } -extension Optional where Wrapped == AppStep { - public var nextStep: AppStep? { - let all = AppStep.allCases +extension Optional where Wrapped == OnboardingStep { + public var nextStep: OnboardingStep? { + let all = OnboardingStep.allCases guard let self else { return all.first }