{"id":21064617,"url":"https://github.com/capturecontext/combine-cocoa-navigation","last_synced_at":"2026-02-23T12:57:38.458Z","repository":{"id":100601479,"uuid":"493200340","full_name":"CaptureContext/combine-cocoa-navigation","owner":"CaptureContext","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-21T13:26:01.000Z","size":630,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T17:00:25.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/CaptureContext.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-05-17T10:22:15.000Z","updated_at":"2024-02-29T01:39:09.000Z","dependencies_parsed_at":"2024-01-03T19:24:57.688Z","dependency_job_id":"c696d835-c4c6-436f-a1f4-70d9d28e6a0f","html_url":"https://github.com/CaptureContext/combine-cocoa-navigation","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptureContext%2Fcombine-cocoa-navigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptureContext%2Fcombine-cocoa-navigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptureContext%2Fcombine-cocoa-navigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptureContext%2Fcombine-cocoa-navigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaptureContext","download_url":"https://codeload.github.com/CaptureContext/combine-cocoa-navigation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239742471,"owners_count":19689317,"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":[],"created_at":"2024-11-19T17:50:17.964Z","updated_at":"2026-02-23T12:57:38.452Z","avatar_url":"https://github.com/CaptureContext.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# combine-cocoa-navigation\n\n[![SwiftPM 5.8](https://img.shields.io/badge/swiftpm-5.8-ED523F.svg?style=flat)](https://swift.org/download/) [![@maximkrouk](https://img.shields.io/badge/contact-@capturecontext-1DA1F2.svg?style=flat\u0026logo=twitter)](https://twitter.com/capture_context) \n\n\u003e [!IMPORTANT]\n\u003e _Deprecated in favor of [`pointfreeco/swift-navigation`](https://github.com/pointfreeco/swift-navigation)_\n\n## Usage\n\nBasically all you need is to call `configureRoutes` method of the viewController, it accepts routing publisher and routeConfigurations, your code may look somewhat like this:\n\n```swift\nfinal class MyViewController: UIViewController {\n  // ...\n  \n  func bindViewModel() {\n    configureRoutes(\n      for viewModel.publisher(for: \\.state.route),\n      routes: [\n        // Provide mapping from route to controller\n        .associate(makeDetailsController, with: .details)\n      ],\n      onDismiss: { \n        // Update state on dismiss\n        viewModel.send(.dismiss)\n      }\n    ).store(in: \u0026cancellables)\n  }\n}\n```\n\n## Installation\n\n### Basic\n\nYou can add CombineNavigation to an Xcode project by adding it as a package dependency.\n\n1. From the **File** menu, select **Swift Packages › Add Package Dependency…**\n2. Enter [`\"https://github.com/capturecontext/combine-cocoa-navigation.git\"`](https://github.com/capturecontext/combine-cocoa-navigation.git) into the package repository URL text field\n3. Choose products you need to link them to your project.\n\n### Recommended\n\nIf you use SwiftPM for your project, you can add CombineNavigation to your package file.\n\n```swift\n.package(\n  url: \"https://github.com/capturecontext/combine-cocoa-navigation.git\", \n  .upToNextMinor(from: \"0.2.0\")\n)\n```\n\nDo not forget about target dependencies:\n\n```swift\n.product(\n  name: \"CombineNavigation\", \n  package: \"combine-cocoa-navigation\"\n)\n\n## License\n\nThis package is released under the MIT license. See [LICENSE](./LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapturecontext%2Fcombine-cocoa-navigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapturecontext%2Fcombine-cocoa-navigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapturecontext%2Fcombine-cocoa-navigation/lists"}