Skip to content

Instantly share code, notes, and snippets.

@syshen
Created March 4, 2015 14:40
Show Gist options
  • Select an option

  • Save syshen/8393d6de0b3e9543ecff to your computer and use it in GitHub Desktop.

Select an option

Save syshen/8393d6de0b3e9543ecff to your computer and use it in GitHub Desktop.
RACSignal *falseSignal = [RACSignal return:@(NO)];
RACSignal *triggerSignal = [[RACSignal combineLatest:@[[self rac_didStartLoad], [self rac_didFinishLoad]]] map:^id(id value) {
@strongify(self);
return @(self.canGoForward);
}];
signal = [RACSignal merge:@[falseSignal, triggerSignal]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment