Skip to content

Comments

Rename package to SwiftUI-Navigation#45

Merged
JamesSedlacek merged 1 commit intomainfrom
rename-to-swiftui-navigation
Oct 29, 2025
Merged

Rename package to SwiftUI-Navigation#45
JamesSedlacek merged 1 commit intomainfrom
rename-to-swiftui-navigation

Conversation

@JamesSedlacek
Copy link
Collaborator

Routable --> Destination
RoutingView --> Navigator
Router --> DestinationState

Consolidated folders into just Models & Views

@JamesSedlacek JamesSedlacek requested a review from Copilot October 29, 2025 02:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Routing to Navigation
  • Renamed core types: RoutableDestination, RoutingViewNavigator, RouterDestinationState
  • 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.

@JamesSedlacek JamesSedlacek merged commit 7bea809 into main Oct 29, 2025
1 check passed
@JamesSedlacek JamesSedlacek deleted the rename-to-swiftui-navigation branch October 29, 2025 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant