Skip to content

Latest commit

 

History

History
83 lines (54 loc) · 3.45 KB

README.md

File metadata and controls

83 lines (54 loc) · 3.45 KB

iOSDesignPatternSamples (MVP)

This is Github user search demo app that made with MVP design pattern.

Application Structure

ViewControllers

Search Github user and show user result list

Show local on memory favorite repositories

Show Github user's repositories

Show a repository and add / remove local on memory favorites

How to add / remove favorites

You can add / remove favorite repositories in RepositoryViewController, but an Array of favorite repository is hold by FavoriteViewController.

Run

You need to set Github Personal Access Token like this.

extension ApiSession {
    static let shared: ApiSession = {
        let token = "" // <- Your Github Personal Access Token
        return ApiSession(injectToken: { InjectableToken(token: token) })
    }()
}

Requirements

  • Xcode 12 or later
  • iOS 13 or later
  • Swift 5 or later

Special Thanks

Author

marty-suzuki, s1180183@gmail.com

License

iOSDesignPatternSamples is available under the MIT license. See the LICENSE file for more info.