Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jotaemepereira/swift-mvvm-reactive-cocoa

A Model-View-ViewModel example with ReactiveCocoa 7.0 and Swift 4.1
https://github.com/jotaemepereira/swift-mvvm-reactive-cocoa

alamofire github-api mvvm mvvm-architecture objectmapper reactive-cocoa swift

Last synced: 5 days ago
JSON representation

A Model-View-ViewModel example with ReactiveCocoa 7.0 and Swift 4.1

Awesome Lists containing this project

README

        

# Swift MVVM Example

A simple iOS app in Swift that shows a list of trending repositories on Github and a detail of each one when clicked.
The selected architecture for the project was MVVM (Model-View-ViewModel)

## Libraries

- ReactiveCocoa 7.0
- Alamofire 4.7
- ObjectMapper 3.1
- Down (to show markdown text)
- Kingfisher (to load images)

## Tests

### Unit tests

Added unit tests for both RepoDetailViewModel and RepoDetailViewModel.

## Taken decisions

- The search is done on the already searched items. It does not perform a new search within the API
- The trending topic search query is 'ios', so it will show the trending repositories on iOS

## Improvements
- Add UI tests