Skip to content

Commit

Permalink
Rename to OnboardingStep
Browse files Browse the repository at this point in the history
  • Loading branch information
keeshux committed Nov 25, 2024
1 parent d5c9c75 commit 4005e50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// AppStep.swift
// OnboardingStep.swift
// Passepartout
//
// Created by Davide De Rosa on 11/25/24.
Expand All @@ -25,17 +25,17 @@

import Foundation

public enum AppStep: String, RawRepresentable, CaseIterable {
public enum OnboardingStep: String, RawRepresentable, CaseIterable {
case migrateV3

case community

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

0 comments on commit 4005e50

Please sign in to comment.