diff --git a/Source/Turbo Navigator/TurboNavigator.swift b/Source/Turbo Navigator/TurboNavigator.swift index 5c9c1be..d59aafc 100644 --- a/Source/Turbo Navigator/TurboNavigator.swift +++ b/Source/Turbo Navigator/TurboNavigator.swift @@ -43,10 +43,10 @@ public class TurboNavigator { /// /// - Parameter url: the URL to visit /// - Parameter bundle: provide context relevant to `url` - public func route(_ url: URL, bundle: [String: Any]? = nil) { + public func route(_ url: URL, parameters: [String: Any]? = nil) { let options = VisitOptions(action: .advance, response: nil) let properties = session.pathConfiguration?.properties(for: url) ?? PathProperties() - route(VisitProposal(url: url, options: options, properties: properties, bundle: bundle)) + route(VisitProposal(url: url, options: options, properties: properties, parameters: parameters)) } /// Transforms `VisitProposal` -> `UIViewController` diff --git a/Source/Visit/VisitProposal.swift b/Source/Visit/VisitProposal.swift index 7db06a0..34e0583 100644 --- a/Source/Visit/VisitProposal.swift +++ b/Source/Visit/VisitProposal.swift @@ -4,15 +4,15 @@ public struct VisitProposal { public let url: URL public let options: VisitOptions public let properties: PathProperties - public let bundle: [String: Any]? + public let parameters: [String: Any]? public init(url: URL, options: VisitOptions, properties: PathProperties = [:], - bundle: [String: Any]? = nil) { + parameters: [String: Any]? = nil) { self.url = url self.options = options self.properties = properties - self.bundle = bundle + self.parameters = parameters } }