Skip to content

Commit

Permalink
Rename to parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
olivaresf committed May 9, 2024
1 parent 820cfa9 commit a242deb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Source/Turbo Navigator/TurboNavigator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
6 changes: 3 additions & 3 deletions Source/Visit/VisitProposal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit a242deb

Please sign in to comment.