Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 21, 2021. It is now read-only.

An example to use Swinject in MVVM architecture with ReactiveCococa

License

NotificationsYou must be signed in to change notification settings

Swinject/SwinjectMVVMExample

Repository files navigation

[OBSOLETED] This example app is obsoleted and no longer follow the latest Xcode/Swift/Swinject versions.


This is an example project to demonstratedependency injection andSwinject inMVVM (Model-View-ViewModel) architecture withReactiveCocoa. The app asynchronously searches, downloads and displays images obtained fromPixabay viaits API.

Screen Record

Requirements

(Xcode 7 version with Swift 2.2 ishere)

Setup

  1. Download the source code or clone the repository.
  2. Runcarthage bootstrap --no-use-binaries --platform iOS.
  3. Get a free API key fromPixabay. It is displayed inthe API documentation page after you log in there.
  4. Create a text file namedPixabay.Config.swift with the following content inExampleModel folder in the project. The string"YOUR_API_KEY" should be replaced with your own key.

Pixabay.Config.swift

extension Pixabay {    internal struct Config {        internal static let apiKey = "YOUR_API_KEY"    }}

Blog Posts

The following blog posts demonstrate step-by-step development of the project.

The following repository has a simplified version of SwinjectMVVMExample to exactly follow the blog posts.

yoichitgy/SwinjectMVVMExample_ForBlog

Icon Images

Icon images used in the app are licensed underCreative Commons Attribution-NoDerivs 3.0 Unported byIcons8.

License

MIT license. See theLICENSE file for details.

About

An example to use Swinject in MVVM architecture with ReactiveCococa

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp