STMReactiveViewController 0.6.1

STMReactiveViewController 0.6.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2020

Maintained by Stefano Mondino.



STMReactiveViewController

Version License Platform

This library provides useful addictions to UIViewController when used with ReactiveCocoa and MVVM pattern.

Key features

  • Smart segues: use performSegueWithIdentifier:parameters: to set values on segue's destinationViewController. Works with topViewController of UINavigationController. Parameters are set using key-value coding by passing a NSDictionary in the new 'parameters' parameter.

  • Convenience performSegueWithIdentifier:viewModel: to set viewModel on destination view controllers with segues

  • Reactive extensions for viewWill/Did Appear/Disappear

  • RACSignal to automatically show/hide loader view (customizable!) and errors from RACCommand. A must for MVVM

  • STMReactiveViewModel incapsulates common datasource methods for table views and collection views

Documentation

Full documentation is coming. You can take a look at the examples in the meanwhile.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 7.0 and above.

Installation

STMReactiveViewController is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "STMReactiveViewController"

Stefano Mondino, [email protected]

License

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