{"id":13536742,"url":"https://github.com/marty-suzuki/GitHubSearchWithSwiftUI","last_synced_at":"2025-04-02T03:31:03.671Z","repository":{"id":87613713,"uuid":"190229557","full_name":"marty-suzuki/GitHubSearchWithSwiftUI","owner":"marty-suzuki","description":"SwiftUI and Combine based GitHubSearch example.","archived":false,"fork":false,"pushed_at":"2019-08-19T05:40:06.000Z","size":272,"stargazers_count":204,"open_issues_count":0,"forks_count":16,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-23T02:22:42.453Z","etag":null,"topics":["combine","swift","swiftui","wwdc"],"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/marty-suzuki.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}},"created_at":"2019-06-04T15:31:29.000Z","updated_at":"2025-02-04T10:33:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"84b93ed2-9995-4195-827d-3d4f0b37bb1b","html_url":"https://github.com/marty-suzuki/GitHubSearchWithSwiftUI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty-suzuki%2FGitHubSearchWithSwiftUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty-suzuki%2FGitHubSearchWithSwiftUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty-suzuki%2FGitHubSearchWithSwiftUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty-suzuki%2FGitHubSearchWithSwiftUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marty-suzuki","download_url":"https://codeload.github.com/marty-suzuki/GitHubSearchWithSwiftUI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246751017,"owners_count":20827818,"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":["combine","swift","swiftui","wwdc"],"created_at":"2024-08-01T09:00:48.495Z","updated_at":"2025-04-02T03:31:03.261Z","avatar_url":"https://github.com/marty-suzuki.png","language":"Swift","funding_links":[],"categories":["Samples","Misc","🌎 by the community","🛠 Examples"],"sub_categories":["SwiftUI","Open Source Apps"],"readme":"# GitHubSearchWithSwiftUI\n\nGitHubSearchWithSwiftUI is an example that using [Combine](https://developer.apple.com/documentation/combine) and [SwiftUI \u003cimg width=\"18px\" src=\"https://developer.apple.com/assets/elements/icons/swiftui/swiftui-96x96.png\"/\u003e](https://developer.apple.com/xcode/swiftui/)\n\n\n| Receive Results | Receive Error | SafariViewController |\n| :-: | :-: | :-: |\n| ![](https://user-images.githubusercontent.com/2082134/58905672-41539280-8745-11e9-99e3-cb3c3c4991f0.png) | ![](https://user-images.githubusercontent.com/2082134/59124140-e1a1f500-8999-11e9-9d28-aaa2181a5e43.png) | ![](https://user-images.githubusercontent.com/2082134/59275420-4198e400-8c97-11e9-8e44-588f328bde8d.png)\n\n[ricemill-sample](https://github.com/marty-suzuki/GitHubSearchWithSwiftUI/blob/ricemill-sample/GitHubSearchWithSwiftUI/View/RepositoryListViewModel.swift#L14-L90) branch is a sample which used [Ricemill](https://github.com/marty-suzuki/Ricemill) (that is Unidirectional Input / Output framework with Combine and SwiftUI).\n\n## TODO\n\n- [x] Search with TextField's text\n- [x] Reflect API responses to List\n- [x] Separate API access from BindableObject\n- [x] Use Combine with API access\n- [x] Reflect responses in MainThread via Combine\n\n## Requirements\n\n- Xcode 11 Beta 5\n- Swift 5.1\n- iOS 13 Beta\n\n## References\n\n- https://developer.apple.com/tutorials/swiftui/tutorials\n- https://developer.apple.com/documentation/swiftui\n- https://developer.apple.com/documentation/combine\n- https://developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/\n- [Data Flow Through SwiftUI](https://developer.apple.com/videos/play/wwdc2019/226)\n- [Building Custom Views with SwiftUI](https://developer.apple.com/videos/play/wwdc2019/237)\n- [Combine in Practice](https://developer.apple.com/videos/play/wwdc2019/721)\n- [Introducing Combine](https://developer.apple.com/videos/play/wwdc2019/722)\n- [Introducing Combine and Advances in Foundation](https://developer.apple.com/videos/play/wwdc2019/711)\n\n## License\n\nGitHubSearchWithSwiftUI is under MIT license. See the [LICENSE](./LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarty-suzuki%2FGitHubSearchWithSwiftUI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarty-suzuki%2FGitHubSearchWithSwiftUI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarty-suzuki%2FGitHubSearchWithSwiftUI/lists"}