Path-based routing in SwiftUI
currentStackIndex
to Navigator
(pull request #56)path
label in Route
. Routes can now be initialized as Route("path/*")
instead of Route(path: "path/*")
.true
.goBack()
.goBack()
and goForward()
.replace
parameter to the Navigate
view. (#27)Navigator
's init public.Router
now has an initializer allowing you to pass a manually initialize Navigator
. This Navigator
will be passed down as an Environment Object as usual.Route
with @autoclosure
.Navigator
and NavigationAction
Equatable
.Upped supported watchOS version.
Almost completely rewritten from scratch.
Changes from the top of my head:
Switch
renamed to SwitchRoutes
, to prevent conflict with SwiftUI's Switch
.Link
renamed to NavLink
, to prevent conflict with SwiftUI's Link
.Redirect
renamed to Navigate
.HistoryData
environment object to Navigator
. A better descriptive name.[String : String]
) to hold parameter values instead of the @ dynamicMemberLookup
object in RouteInformation
.Route
.