{"id":18269698,"url":"https://github.com/skyfe79/rxgitsearch","last_synced_at":"2025-04-04T23:31:27.358Z","repository":{"id":137746445,"uuid":"51121689","full_name":"skyfe79/RxGitSearch","owner":"skyfe79","description":"RxGitSearch is iOS demo app searching github repositories. It uses some Rx techniques to achieve flexible, auto ui update, no dependencies and others.","archived":false,"fork":false,"pushed_at":"2016-02-23T14:28:22.000Z","size":761,"stargazers_count":20,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T20:18:15.881Z","etag":null,"topics":[],"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/skyfe79.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}},"created_at":"2016-02-05T02:45:11.000Z","updated_at":"2023-09-23T22:48:49.000Z","dependencies_parsed_at":"2023-05-07T02:14:36.150Z","dependency_job_id":null,"html_url":"https://github.com/skyfe79/RxGitSearch","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/skyfe79%2FRxGitSearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfe79%2FRxGitSearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfe79%2FRxGitSearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyfe79%2FRxGitSearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyfe79","download_url":"https://codeload.github.com/skyfe79/RxGitSearch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266476,"owners_count":20910831,"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-05T11:36:54.216Z","updated_at":"2025-04-04T23:31:25.433Z","avatar_url":"https://github.com/skyfe79.png","language":"Swift","readme":"# RxGitSearch\n\nRxGitSearch is iOS demo app searching github repositories. It uses some Rx techniques to achieve flexible, auto ui update, no dependencies and others. If you're wandering how to use Rx for real app, I think RxGitSearch may help you! The ViewControlls in RxGitSearch has no dependency among them because they use url route to navigate each other. If you are Korean, You can see [my slideshare](http://www.slideshare.net/skyfe79/rx-for-ios-app-rxmvvmdatacenter) why removing dependency among ViewControllers is important. \n\n[![RxGitSearch Demo Video](art/screenshot.png)](http://www.youtube.com/watch?v=NZPmzd2_UZA)\n\n## Techniques that I used\n* RxMVVM-DataCenter\n * \tIf you are unfamiliar with RxMVVM-DataCenter architecture, I recommend you to read Ribot Tech Blog first. [Android Application Architecture](https://medium.com/ribot-labs/android-application-architecture-8b6e34acda65#.gbqrq9oib)\n* URL Route for ViewController navigation\n * URL Route can remove dependencies among ViewControllers than Apple's UISegue does. Ofcourse UISegue can remove dependencies among viewcontrollers only just for transition. However, If you want to inject some data to the destination viewcontroller, you should cast destinationViewController to specific your viewcontroller on prepareSegue method. This is the place that strong dependency is generated.\n\n## RxMVVM-DATACENTER\n\n![](art/shot.jpeg)\n\n### You can post \u0026 receive big data to \u0026 from DataCenter like belows.\n\n```swift\n// post some data which is binded to 'id' to DataCenter\nDataCenter.instance.post(String(id), value: repo)\n```\n\n```swift\n// receive some data which is binded to 'id' as observable\nDataCenter\n    .instance\n    .receive(id!)?\n    .asObservable()\n    .subscribeNext { [unowned self] (value: Any) -\u003e Void in\n        if let repo = value as? Repository {\n            self.repo = repo\n            self.owner = repo.owner\n        }\n    }\n    .addDisposableTo(disposeBag)\n```\n\n### You can navigate view controllers via URL\n```swift\nRoute.push(self, url: \"http://repository/detail/\\(id)\") { (vc, result) in\n\t// Here is callback block which is called when you call Route.back() method.\n\t// You can dismiss or pop using vc. vc is UIViewController instance and result is some data from vc.\n}\n```\n\n```swift\n//example for pushing\nRoute.push(self, url: \"http://repository/detail/\\(id)\") { (vc, result) in\n        \n    vc.navigationController?.popViewControllerAnimated(true)\n    \n    let alert = UIAlertController(title: \"WOW\", message: String(result!), preferredStyle: UIAlertControllerStyle.ActionSheet)\n    let action = UIAlertAction(title: \"OK\", style: UIAlertActionStyle.Default, handler: { action in\n        alert.dismissViewControllerAnimated(true, completion: nil)\n    })\n    alert.addAction(action)\n    self.presentViewController(alert, animated: true, completion: nil)\n}\n```\n\n```swift\n//example for backing route\nbackButton\n\t.rx_tap\n\t.subscribeNext { [unowned self] in\n\t    \n\t    if let fullname = self.viewModel.repoFullName() {\n\t        Route.back(\"app://repository/detail/:id\", from: self, result: \"Wow, You're back from \" + fullname)\n\t    } else {\n\t        Route.back(\"app://repository/detail/:id\", from: self, result: \"Wow, You're Back!\")\n\t    }\n\t    \n\t}\n\t.addDisposableTo(disposeBag)\n```\n\n* You can remove every dependencies among ViewController using URL-Route!\n\n## Libraries that RxGitSearch used\n\n* Rx\n * RxSwift\n * RxCocoa\n * RxAlamofire\n* HTTP-Request\n * Alamofire\n* JSON-OBJECT MAPPER\n * ObjectMapper\n * AlamofireObjectMapper     \n\n## The MIT License (MIT)\n\nCopyright (c) 2016 Sungcheol Kim, [https://github.com/skyfe79/RxGitSearch](https://github.com/skyfe79/RxGitSearch)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyfe79%2Frxgitsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyfe79%2Frxgitsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyfe79%2Frxgitsearch/lists"}