UINavigationController with support signals.
pod 'EYNavigationController', '~> 0.0.1'
#import <EYNavigationController/EYNavigationController.h>
...
- (RACSignal *)showAnimalsOfUser:(User *)user
{
return [[self.dataProvider getAnimalsOfUser:user]
flattenMap:^RACStream *(NSArray<Animal *> *animals) {
AnimalsViewController *viewController = [[AnimalsViewController alloc] initWithAnimals:animals];
EYNavigationController *navigationController = (EYNavigationController *)self.navigationController;
return [navigationController signalForPushViewController:viewController animated:YES];
}];
}
...