{"id":13475200,"url":"https://github.com/marty-suzuki/iOSDesignPatternSamples","last_synced_at":"2025-03-26T23:30:42.438Z","repository":{"id":38706651,"uuid":"99484213","full_name":"marty-suzuki/iOSDesignPatternSamples","owner":"marty-suzuki","description":"This is Github user search demo app which made by many variety of design patterns. You can compare differences in MVC, MVP, MVVM and Flux.","archived":false,"fork":false,"pushed_at":"2021-02-14T04:26:40.000Z","size":84455,"stargazers_count":690,"open_issues_count":7,"forks_count":92,"subscribers_count":22,"default_branch":"main","last_synced_at":"2025-03-21T03:46:41.180Z","etag":null,"topics":["design-patterns","flux","ios","mvc","mvp","mvvm"],"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}},"created_at":"2017-08-06T12:14:35.000Z","updated_at":"2024-12-17T17:48:08.000Z","dependencies_parsed_at":"2022-09-16T11:23:19.043Z","dependency_job_id":null,"html_url":"https://github.com/marty-suzuki/iOSDesignPatternSamples","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%2FiOSDesignPatternSamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty-suzuki%2FiOSDesignPatternSamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty-suzuki%2FiOSDesignPatternSamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty-suzuki%2FiOSDesignPatternSamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marty-suzuki","download_url":"https://codeload.github.com/marty-suzuki/iOSDesignPatternSamples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245753824,"owners_count":20666819,"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":["design-patterns","flux","ios","mvc","mvp","mvvm"],"created_at":"2024-07-31T16:01:18.215Z","updated_at":"2025-03-26T23:30:37.419Z","avatar_url":"https://github.com/marty-suzuki.png","language":"Swift","readme":"# iOSDesignPatternSamples\n\nThis is Github user search demo app which made by many variety of design patterns.\n\n![](./Images/app.gif)\n\n## Application Structure\n\n![](./Images/structure.png)\n\n- SearchViewController... Search Github user with query.\n- UserRepositoryViewController... Show repositories of user who selected in SearchViewController.\n- RepositoryViewController... Show a repository which selected in UserRepositoryViewController or FavoriteViewController. In addition, add / remove favorite repositories on memory.\n- FavoriteViewController... Show favorite repositories which stored on memory.\n\n## Design Patterns\n\n- ### [MVC](https://github.com/marty-suzuki/iOSDesignPatternSamples/tree/mvc)\n- ### [MVP](https://github.com/marty-suzuki/iOSDesignPatternSamples/tree/mvp)\n- ### [MVVM](https://github.com/marty-suzuki/iOSDesignPatternSamples/tree/mvvm)\n- ### [Flux](https://github.com/marty-suzuki/iOSDesignPatternSamples/tree/flux)\n\n## Difference between A to B\n\n|A / B|MVC|MVP|MVVM|Flux|\n|:-:|:-:|:-:|:-:|:-:|\n|MVC|-|[diff](https://github.com/marty-suzuki/iOSDesignPatternSamples/pull/1/files)|[diff](https://github.com/marty-suzuki/iOSDesignPatternSamples/pull/2/files)|[diff](https://github.com/marty-suzuki/iOSDesignPatternSamples/pull/3/files)|\n|MVP|-|-|[diff](https://github.com/marty-suzuki/iOSDesignPatternSamples/pull/4/files)|[diff](https://github.com/marty-suzuki/iOSDesignPatternSamples/pull/5/files)|\n|MVVM|-|-|-|[diff](https://github.com/marty-suzuki/iOSDesignPatternSamples/pull/6/files)|\n\nYou can compare differences like this.\n\n![](./Images/diff.png)\n\n## Run\n\nYou need to set `Github Personal Access Token` like this.\n\n```swift\nextension ApiSession {\n    static let shared: ApiSession = {\n        let token = \"\" // \u003c- Your Github Personal Access Token\n        return ApiSession(injectToken: { InjectableToken(token: token) })\n    }()\n}\n```\n\n## Requirements\n\n- Xcode 12 or later\n- iOS 13 or later\n- Swift 5 or later\n\n## Special Thanks\n\n- [GithubKitForSample](https://github.com/marty-suzuki/GithubKitForSample)\n\n## Author\n\nmarty-suzuki, s1180183@gmail.com\n\n## License\n\niOSDesignPatternSamples is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":["Swift","Sample"],"sub_categories":["RSS"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarty-suzuki%2FiOSDesignPatternSamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarty-suzuki%2FiOSDesignPatternSamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarty-suzuki%2FiOSDesignPatternSamples/lists"}