frzi / swiftui-router

Path-based routing in SwiftUI
MIT License
900 stars 43 forks source link

Fix 'subscript' is inaccessible due to 'internal' protection level #5

Closed itrack closed 4 years ago

itrack commented 4 years ago

The problem is at "param":

            Route(path: "/page/:param?", exact: true) { route in
                PageView(param: route.parameters.param!)
            }
frzi commented 4 years ago

Ooph. An embarrassing oversight. Thanks for the fix!

itrack commented 4 years ago

No problem, you did a very good job! 😄