Skip to content

Commit

Permalink
Rename Navigation -> TurboNavigation
Browse files Browse the repository at this point in the history
Naming is quite general. I'd prefer if we could change it to something omre specific.
  • Loading branch information
olivaresf committed Nov 16, 2023
1 parent ec73f89 commit 5894d0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public enum Navigation {
public enum TurboNavigation {
public enum Context: String {
case `default`
case modal
Expand Down
2 changes: 1 addition & 1 deletion Tests/Turbo Navigator/TurboNavigatorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 5894d0f

Please sign in to comment.