SwiftUIRouter Versions Save

Path-based routing in SwiftUI

1.3.2

2 years ago
  • Added currentStackIndex to Navigator (pull request #56)

1.3.1

2 years ago
  • Fix issue #40

1.3.0

2 years ago
  • Deprecated the path label in Route. Routes can now be initialized as Route("path/*") instead of Route(path: "path/*").
  • Added support for DocC. Documentation can now be built and viewed in Xcode.
  • Improved code documentation in comments.
  • Added links to examples in the readme.

1.2.2

2 years ago
  • Fixed out-of-bounds crash when navigating with replace on true.
  • Fixed forward stack not updating accordingly with goBack().
  • Added additional tests for goBack() and goForward().

1.2.1

2 years ago
  • Added the replace parameter to the Navigate view. (#27)

1.2.0

2 years ago
  • Made Navigator's init public.
  • To go with it, 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.
  • Added a convenience initializer to Route with @autoclosure.

1.1.0

2 years ago
  • Made Navigator and NavigationAction Equatable.
  • Added checks and error(s) for invalid path parameters. Parameters may only exist of alphanumeric characters (A-Z, a-z and 0-9) and must start with a letter.
  • Updated README and code documentation regarding the limited characterset of parameter names.

1.0.2

2 years ago
  • Fixed issue where the entire history stack could be emptied.
  • Removed unused stack limit code/feature.

1.0.1

2 years ago

Upped supported watchOS version.

1.0.0

3 years ago

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.
  • Renamed the HistoryData environment object to Navigator. A better descriptive name.
  • Use an actual dictionary ([String : String]) to hold parameter values instead of the @ dynamicMemberLookup object in RouteInformation.
  • All paths are now relative.
  • Added support for an extra step of parameter validation in Route.
  • Detailed documentation in the source code.
  • Added tests.