Rename package to SwiftUI-Navigation#45
Merged
JamesSedlacek merged 1 commit intomainfrom Oct 29, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR renames the package from "Routing" to "SwiftUI-Navigation" and updates all related terminology throughout the codebase. The core changes include renaming Routable to Destination, RoutingView to Navigator, and Router to DestinationState. The folder structure has been consolidated into Models and Views directories.
Key Changes:
- Updated package name from "Routing" to "SwiftUI-Navigation" with import statement changed from
RoutingtoNavigation - Renamed core types:
Routable→Destination,RoutingView→Navigator,Router→DestinationState - Updated all test files, documentation, and example code to reflect the new naming conventions
Reviewed Changes
Copilot reviewed 14 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Package.swift | Updated package, library, and test target names to reflect the new "SwiftUI-Navigation" naming |
| Sources/Navigation/Models/Destination.swift | Renamed type alias from Routable to Destination and updated documentation |
| Sources/Navigation/Models/DestinationState.swift | Renamed property wrapper from Router to DestinationState with updated storage key |
| Sources/Navigation/Models/DestinationArray+.swift | Updated file name and extension constraint from Routable to Destination |
| Sources/Navigation/Views/Navigator.swift | Renamed view from RoutingView to Navigator with updated generic parameter names |
| Sources/Navigation/Views/View+Extensions.swift | Updated view extension parameter names and documentation to use Destination terminology |
| Tests/SwiftUINavigationTests/Mocks/MockDestination.swift | Renamed mock enum from MockRoute to MockDestination |
| Tests/SwiftUINavigationTests/ArrayTruncationTests.swift | Updated import statement to use new Navigation module name |
| Tests/SwiftUINavigationTests/ArraySwiftUINavigationTests.swift | Renamed test struct and updated all test cases to use MockDestination |
| README.md | Comprehensive documentation updates with new terminology, URLs, and examples |
| ExampleApp/TestDestination.swift | Renamed example enums from *Route to *Destination |
| ExampleApp/ExampleView.swift | Updated property names and types to use new Destination terminology |
| ExampleApp/ExampleApp.swift | Updated header comment with new package name |
| ExampleApp/ContentView.swift | Updated to use Navigator and DestinationState with new naming conventions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Routable --> Destination
RoutingView --> Navigator
Router --> DestinationState
Consolidated folders into just Models & Views