Skip to content

Releases: Sedlacek-Solutions/SwiftUI-Navigation

1.1.1

29 Oct 02:29
505d580

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.1.0...1.1.1

v1.1.0

08 May 03:46

Choose a tag to compare

🚀 New Features & Enhancements

Introduced @Router Property Wrapper:

  • Simplifies navigation state management by persisting the navigation stack in UserDefaults via @AppStorage.
  • Provides a Binding to the route array, making it easy to drive NavigationStack.
  • Centralizes navigation logic and enables dynamic stack management.

Added Convenience View Extensions:

  • navigationDestination(for: RouteType.self): Automatically sets up navigation destinations for any Routable type, streamlining the connection between your routes and their views.
  • sheet(item:onDismiss:): Presents a sheet using a Routable & Identifiable item, simplifying modal presentations.
  • navigationDestination(item:) (iOS 17.0+): Offers a modern way to present views modally or in alternative navigation flows based on an optional Routable item.

Testing

Migrated to Swift Testing:

  • Updated the project’s unit tests to use the new Swift Testing framework (import Testing).
  • This modernizes the test suite, potentially offering improved test organization, performance, and new testing capabilities.

📚 Documentation

Comprehensive README Update:

  • Added a dedicated "View Extensions" section detailing the new helper modifiers.
  • Improved the "Under the hood" explanation to clarify the role of RoutingView and its use of view extensions.
  • Updated the Table of Contents for better navigation.

Updated Tag

28 Dec 12:55
84e3729

Choose a tag to compare

Tag is now pointed at main.

First Release - Swift Package Manager

29 Dec 23:40

Choose a tag to compare

Includes a RoutingView, Router, Routable functions (pop, push, popToRoot, etc.), & RoutableTests.