Skip to content

Commit

Permalink
Fix demo app
Browse files Browse the repository at this point in the history
  • Loading branch information
joemasilotti committed May 20, 2024
1 parent 93af6fd commit 5f42ee4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Demo/Navigator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import Turbo
/// A bridge "back" to Turbo world from native.
/// See `NumbersViewController` for an example of navigating from native to web.
protocol Navigator: AnyObject {
func route(_: URL)
func route(_ url: URL)
}

extension TurboNavigator: Navigator {}
extension TurboNavigator: Navigator {
func route(_ url: URL) {
route(url, options: VisitOptions(action: .advance), parameters: nil)
}
}

0 comments on commit 5f42ee4

Please sign in to comment.