DiffMVPAndMVVM icon indicating copy to clipboard operation
DiffMVPAndMVVM copied to clipboard

MVP and MVVM implementations and test code sample.

DiffMVPAndMVVM

Tally Counter sample.

Presentation Link
https://speakerdeck.com/martysuzuki/jin-geng-wen-kenaimvptomvvmfalsewei-i

MVP

View

  • MVPViewController
  • MVPViewControllerTestCase

Presenter

  • CounterPresenter
  • CounterPresenterTestCase

MVVM

View

  • MVVMViewController
  • MVVMViewControllerTestCase

ViewModel

  • CounterViewModel
  • CounterViewModelTestCase

Common

Model

  • CounterModel
  • CounterModelTestCase

Requirements

  • Xcode 9.3
  • Swift 4.1
  • iOS 11
  • RxSwift 4.1
  • carthage 0.27.0

Demo

carthage update --platform ios --no-use-binaries

Author

Taiki Suzuki, [email protected]

License

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