diff --git a/Source/Turbo Navigator/Extensions/VisitProposalExtension.swift b/Source/Turbo Navigator/Extensions/VisitProposalExtension.swift index cccdb2f..8d97578 100644 --- a/Source/Turbo Navigator/Extensions/VisitProposalExtension.swift +++ b/Source/Turbo Navigator/Extensions/VisitProposalExtension.swift @@ -1,14 +1,14 @@ public extension VisitProposal { - var context: Navigation.Context { + var context: TurboNavigation.Context { if let rawValue = properties["context"] as? String { - return Navigation.Context(rawValue: rawValue) ?? .default + return TurboNavigation.Context(rawValue: rawValue) ?? .default } return .default } - var presentation: Navigation.Presentation { + var presentation: TurboNavigation.Presentation { if let rawValue = properties["presentation"] as? String { - return Navigation.Presentation(rawValue: rawValue) ?? .default + return TurboNavigation.Presentation(rawValue: rawValue) ?? .default } return .default } diff --git a/Source/Turbo Navigator/Helpers/Navigation.swift b/Source/Turbo Navigator/Helpers/TurboNavigation.swift similarity index 91% rename from Source/Turbo Navigator/Helpers/Navigation.swift rename to Source/Turbo Navigator/Helpers/TurboNavigation.swift index 9aaaf6d..7137d9d 100644 --- a/Source/Turbo Navigator/Helpers/Navigation.swift +++ b/Source/Turbo Navigator/Helpers/TurboNavigation.swift @@ -1,4 +1,4 @@ -public enum Navigation { +public enum TurboNavigation { public enum Context: String { case `default` case modal diff --git a/Tests/Turbo Navigator/TurboNavigatorTests.swift b/Tests/Turbo Navigator/TurboNavigatorTests.swift index 43d75db..02e855e 100644 --- a/Tests/Turbo Navigator/TurboNavigatorTests.swift +++ b/Tests/Turbo Navigator/TurboNavigatorTests.swift @@ -297,7 +297,7 @@ private class EmptyNavigationDelegate: TurboNavigationHierarchyControllerDelegat // MARK: - VisitProposal extension private extension VisitProposal { - init(path: String = "", action: VisitAction = .advance, context: Navigation.Context = .default, presentation: Navigation.Presentation = .default) { + init(path: String = "", action: VisitAction = .advance, context: TurboNavigation.Context = .default, presentation: TurboNavigation.Presentation = .default) { let url = URL(string: "https://example.com")!.appendingPathComponent(path) let options = VisitOptions(action: action, response: nil) let properties: PathProperties = [