An open API service indexing awesome lists of open source software.

https://github.com/k-lpmg/ios-architecture-example

Architecture pattern simple examples in iOS. You can compare differences in MVC, MVP, MVVM-Delegate and MVVM-Rx for same feature
https://github.com/k-lpmg/ios-architecture-example

ios-architecture mvc mvp mvvm rxswift

Last synced: 19 days ago
JSON representation

Architecture pattern simple examples in iOS. You can compare differences in MVC, MVP, MVVM-Delegate and MVVM-Rx for same feature

Awesome Lists containing this project

README

        

# iOS Architecture Example

[![Build Status](https://travis-ci.org/k-lpmg/ios-architecture-example.svg?branch=master)](https://travis-ci.org/k-lpmg/ios-architecture-example)
![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)
![Architecture](https://img.shields.io/badge/architecture-MVC-brightgreen.svg)
![Architecture](https://img.shields.io/badge/architecture-MVP-brightgreen.svg)
![Architecture](https://img.shields.io/badge/architecture-MVVM-brightgreen.svg)

Github search API examples with the iOS architecture pattern.

## Architecture patterns

The applied patterns is as follows.

[MVC](https://github.com/k-lpmg/ios-architecture-example/tree/master/MVC/Sources)

[MVP](https://github.com/k-lpmg/ios-architecture-example/tree/master/MVP/Sources)

[MVVM with Delegate](https://github.com/k-lpmg/ios-architecture-example/tree/master/MVVM-Delegate/Sources)

[MVVM with Rx](https://github.com/k-lpmg/ios-architecture-example/tree/master/MVVM-Rx/Sources)

## Shared

The codes used together in the examples.

[Model](https://github.com/k-lpmg/ios-architecture-example/blob/master/Shared/Model/SearchRepositoriesModel.swift)

[View](https://github.com/k-lpmg/ios-architecture-example/blob/master/Shared/View/RepositoryTableViewCell.swift)

## Example






1. run pod install
```console
$ pod install
```

2. open ios-architecture-example.xcworkspace
```console
$ open ios-architecture-example.xcworkspace
```

3. run [MVC](https://github.com/k-lpmg/ios-architecture-example/tree/master/MVC), [MVP](https://github.com/k-lpmg/ios-architecture-example/tree/master/MVP), [MVVM-Delegate](https://github.com/k-lpmg/ios-architecture-example/tree/master/MVVM-Delegate) or [MVVM-Rx](https://github.com/k-lpmg/ios-architecture-example/tree/master/MVVM-Rx)

## LICENSE

These works are available under the MIT license. See the [LICENSE][license] file
for more info.

[license]: LICENSE