Skip to content

Releases: frzi/swiftui-router

1.3.2

12 Apr 10:20
cd8c2bb
Compare
Choose a tag to compare
  • Added currentStackIndex to Navigator (pull request #56)

1.3.1

31 Dec 15:20
a6f6c67
Compare
Choose a tag to compare
  • Fix issue #40

1.3.0

05 Dec 11:14
Compare
Choose a tag to compare
  • 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

27 Nov 20:21
42ef6d3
Compare
Choose a tag to compare
  • 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

28 Sep 10:35
edd6728
Compare
Choose a tag to compare
  • Added the replace parameter to the Navigate view. (#27)

1.2.0

14 Sep 17:23
fe08575
Compare
Choose a tag to compare
  • 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

07 Aug 14:34
dfad2c7
Compare
Choose a tag to compare
  • 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

01 Aug 19:01
b2fc061
Compare
Choose a tag to compare
  • Fixed issue where the entire history stack could be emptied.
  • Removed unused stack limit code/feature.

1.0.1

18 Jul 18:41
3206c19
Compare
Choose a tag to compare

Upped supported watchOS version.

1.0.0

25 Apr 23:16
433c621
Compare
Choose a tag to compare

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.