{"id":21406349,"url":"https://github.com/lm/navigation-stack-backport","last_synced_at":"2025-10-27T06:31:27.246Z","repository":{"id":65408431,"uuid":"562417376","full_name":"lm/navigation-stack-backport","owner":"lm","description":"SwiftUI NavigationStack for iOS 14 and 15","archived":false,"fork":false,"pushed_at":"2024-08-09T08:20:37.000Z","size":26,"stargazers_count":115,"open_issues_count":3,"forks_count":16,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-04T22:08:32.874Z","etag":null,"topics":["backport","ios","navigation","navigationstack","swift","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-06T09:45:08.000Z","updated_at":"2025-01-16T12:04:09.000Z","dependencies_parsed_at":"2024-01-18T21:36:41.106Z","dependency_job_id":"89a5ee3c-c3d8-4e85-940a-b071bd7bfe57","html_url":"https://github.com/lm/navigation-stack-backport","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"7641abbba79be2cc2616413e7915d5f778784ecd"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lm%2Fnavigation-stack-backport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lm%2Fnavigation-stack-backport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lm%2Fnavigation-stack-backport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lm%2Fnavigation-stack-backport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lm","download_url":"https://codeload.github.com/lm/navigation-stack-backport/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238452712,"owners_count":19474949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backport","ios","navigation","navigationstack","swift","swiftui"],"created_at":"2024-11-22T16:39:04.992Z","updated_at":"2025-10-27T06:31:26.828Z","avatar_url":"https://github.com/lm.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftUI NavigationStack Backport\n\n`NavigationStack` for iOS 14 and 15 implemented on top of `UINavigationController`. Backport just bridges to existing SwiftUI API on iOS 16 or newer.\n\n## Features\n\n- `NavigationPath` is fully supported including codable representation\n- `View.navigationDestination()`, `View.navigationDestination(isPresented:destination:)` and `View.navigationDestination(item:destination:)`\n- `NavigationLink` with value\n- for now tested only on iOS\n\n## Getting Started\n\nInstallation via Swift Package Manager is supported. Use `https://github.com/lm/navigation-stack-backport` as depedency URL. For more information how to add dependency in Xcode see https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app or add dependency in your Package.swift `.package(url: \"https://github.com/lm/navigation-stack-backport\", from: \"1.1.0\")`\n\n## Usage Example\n\nUsage is the same as SwiftUI's `NavigationStack` on iOS 16, just prefix `NavigationStack` and other types with `NavigationStackBackport.` or import exact types from `NavigationStackBackport` package. For view modifiers introduced in iOS 16 use `backport.` prefix like `.backport.navigationDestination(for: …)`.\n\n```\nimport NavigationStackBackport\n\nstruct ContentView: View {\n\t@State private var navigationPath = NavigationStackBackport.NavigationPath()\n\n\tvar body: some View {\n\t\tNavigationStackBackport.NavigationStack(path: $navigationPath) {\n\t\t\tButton(\"Push\") {\n\t\t\t\tnavigationPath.append(\"Hello World\")\n\t\t\t}\n\t\t\t.backport.navigationDestination(for: String.self) { value in\n\t\t\t\tImage(systemName: \"globe\")\n\t\t\t\t\t.navigationTitle(value) // use available SwiftUI's modifiers\n\t\t\t}\n\t\t}\n\t}\n}\n\n```\n\nFor more examples see the `TestApp` within this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flm%2Fnavigation-stack-backport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flm%2Fnavigation-stack-backport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flm%2Fnavigation-stack-backport/lists"}