Skip to content

Commit

Permalink
Set session's path config from the global path config.
Browse files Browse the repository at this point in the history
  • Loading branch information
svara committed Dec 6, 2024
1 parent ade80c2 commit 05373db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Source/Turbo/Navigator/Navigator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ public class Navigator {

/// Convenience initializer that doesn't require manually creating `Session` instances.
/// - Parameters:
/// - pathConfiguration: _optional:_ remote configuration reference
/// - delegate: _optional:_ delegate to handle custom view controllers
public convenience init(pathConfiguration: PathConfiguration? = nil, delegate: NavigatorDelegate? = nil) {
public convenience init(delegate: NavigatorDelegate? = nil) {
let session = Session(webView: Hotwire.config.makeWebView())
session.pathConfiguration = pathConfiguration
session.pathConfiguration = Hotwire.config.pathConfiguration

let modalSession = Session(webView: Hotwire.config.makeWebView())
modalSession.pathConfiguration = pathConfiguration
modalSession.pathConfiguration = Hotwire.config.pathConfiguration

self.init(session: session, modalSession: modalSession, delegate: delegate)
}
Expand Down

0 comments on commit 05373db

Please sign in to comment.