Skip to content

Latest commit

 

History

History
80 lines (50 loc) · 2.96 KB

README.md

File metadata and controls

80 lines (50 loc) · 2.96 KB

iOSDesignPatternSamples (Flux)

This is Github user search demo app that made with Flux 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. Array of favorite repository is hold by FavoriteModel that injected to each actions, therefore you can use its reference everywhere!

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, [email protected]

License

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