Skip to content

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.

License

Notifications You must be signed in to change notification settings

marty-suzuki/iOSDesignPatternSamples

Repository files navigation

iOSDesignPatternSamples (Flux)

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

Application Structure

Flux

Repository

User

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 RepositoryStore, therefore you can use its reference everywhere!

Run

To run this example, you need make install.

In addition, 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 10.1 or later
  • iOS 11 or later
  • Swift 4.2 or later

Special Thanks

Author

marty-suzuki, [email protected]

License

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages