{"id":29568652,"url":"https://github.com/goodrequest/gooduikitcoordinator","last_synced_at":"2025-12-31T14:14:03.041Z","repository":{"id":302033015,"uuid":"809650579","full_name":"GoodRequest/GoodUIKitCoordinator","owner":"GoodRequest","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-18T10:32:49.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-18T14:29:05.930Z","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/GoodRequest.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,"zenodo":null}},"created_at":"2024-06-03T07:27:11.000Z","updated_at":"2025-07-18T10:32:52.000Z","dependencies_parsed_at":"2025-06-30T08:24:05.080Z","dependency_job_id":null,"html_url":"https://github.com/GoodRequest/GoodUIKitCoordinator","commit_stats":null,"previous_names":["goodrequest/gooduikitcoordinator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/GoodRequest/GoodUIKitCoordinator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodRequest%2FGoodUIKitCoordinator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodRequest%2FGoodUIKitCoordinator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodRequest%2FGoodUIKitCoordinator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodRequest%2FGoodUIKitCoordinator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoodRequest","download_url":"https://codeload.github.com/GoodRequest/GoodUIKitCoordinator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodRequest%2FGoodUIKitCoordinator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265866397,"owners_count":23840956,"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":"2025-07-19T01:06:33.842Z","updated_at":"2025-12-31T14:14:03.011Z","avatar_url":"https://github.com/GoodRequest.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoodUIKitCoordinator\n\nA lightweight, flexible coordinator pattern implementation for UIKit applications, designed to simplify navigation flow management in iOS apps.\n\n[![Swift](https://img.shields.io/badge/Swift-6.0-orange.svg)](https://swift.org)\n[![Platform](https://img.shields.io/badge/platforms-iOS%2013.0%20%7C%20macOS%2011.0-blue.svg)](https://apple.com/ios)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/GoodRequest/GoodUIKitCoordinator/blob/main/LICENSE)\n\n## Overview\n\nGoodUIKitCoordinator provides a robust implementation of the coordinator pattern for UIKit-based iOS applications. It helps you separate navigation logic from view controllers, making your code more maintainable, testable, and easier to understand.\n\n## Features\n\n- Simplified navigation flow management\n- Support for complex navigation hierarchies\n- Easy parent-child coordinator relationships\n- Built-in support for common navigation actions (push, pop, present, dismiss)\n- Integrated support for Safari, universal links, and system apps\n- Messaging capabilities (SMS, email)\n- Combine integration for reactive programming\n\n## Requirements\n\n- iOS 13.0+ / macOS 11.0+\n- Swift 6.0+\n- Xcode 15.0+\n\n## Installation\n\n### Swift Package Manager\n\nAdd GoodUIKitCoordinator to your project through Swift Package Manager:\n\n1. In Xcode, select **File \u003e Add Package Dependencies...**\n2. Enter the repository URL: `https://github.com/GoodRequest/GoodUIKitCoordinator.git`\n3. Select the version or branch you want to use\n\nAlternatively, add it to your `Package.swift` file:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/GoodRequest/GoodUIKitCoordinator.git\", from: \"1.0.0\")\n]\n```\n\n## Usage\n\n### Basic Implementation\n\n1. Create a coordinator by subclassing `GoodCoordinator` with your custom step enum:\n\n```swift\n// Define your navigation steps\nenum AppStep {\n    case dashboard\n    case profile\n    case settings\n    case details(item: Item)\n}\n\n// Create your coordinator\nclass AppCoordinator: GoodCoordinator\u003cAppStep\u003e {\n    \n    override func navigate(to step: AppStep) -\u003e StepAction {\n        switch step {\n        case .dashboard:\n            let viewController = DashboardViewController()\n            return .push(viewController)\n            \n        case .profile:\n            let viewController = ProfileViewController()\n            return .present(viewController)\n            \n        case .settings:\n            let viewController = SettingsViewController()\n            return .push(viewController)\n            \n        case .details(let item):\n            let viewController = DetailsViewController(item: item)\n            return .push(viewController)\n        }\n    }\n}\n```\n\n2. Initialize and start your coordinator:\n\n```swift\nlet navigationController = UINavigationController()\nlet coordinator = AppCoordinator(rootViewController: navigationController)\ncoordinator.start()\n\n// Navigate to a specific step\ncoordinator.perform(step: .dashboard)\n```\n\n### Nested Coordinators\n\nYou can create hierarchies of coordinators for complex navigation flows:\n\n```swift\nclass ProfileCoordinator: GoodCoordinator\u003cProfileStep\u003e {\n    // Implementation\n}\n\nclass AppCoordinator: GoodCoordinator\u003cAppStep\u003e {\n    \n    override func navigate(to step: AppStep) -\u003e StepAction {\n        switch step {\n        case .profile:\n            let profileCoordinator = ProfileCoordinator(parentCoordinator: self)\n            profileCoordinator.start()\n            profileCoordinator.perform(step: .showProfile)\n            return .none\n            \n        // Other cases\n        }\n    }\n}\n```\n\n### Navigation Between Coordinators\n\nUse the static `execute` method to navigate between coordinators:\n\n```swift\n// From any view controller\n@IBAction func showSettings() {\n    GoodCoordinator.execute(\n        step: .settings,\n        on: SettingsCoordinator.self,\n        from: coordinator\n    )\n}\n```\n\n## License\n\nGoodUIKitCoordinator is available under the MIT license. See the [LICENSE](LICENSE) file for more info.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodrequest%2Fgooduikitcoordinator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoodrequest%2Fgooduikitcoordinator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodrequest%2Fgooduikitcoordinator/lists"}