Skip to content

mayholm/swift-mvvm-examples

 
 

Repository files navigation

MVVM Examples with Swift Circle CI

Using KnockoutJS examples as a starting point, I hope to point out how to use MVVM in various views of on iOS application.

Brief

Most of the view code that I am going to write will be written in code so that the concepts are easily digestable without needing to consult a storyboard (with the exception of the window and root view controller).

Lessons

  1. Hello iPhone, simple text box form that responds to text changes and updates a label
  2. Click Counter, tracking dependencies and enabling inputs with signals
  3. Simple List, demonstrates binding to an array or values and enabling buttons based on validation

Dependencies

  • ReactiveCocoa This is the key to binding, signal chaining and other awesome stuff.
  • PureLayout Simple way to do declaritive auto layout without the extra keystrokes.

Getting started

  1. Clone the repository

  2. Run Carthage update

    carthage update

More Info

About

Examples of MVVM using swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 99.3%
  • Objective-C 0.7%