Skip to content
This repository was archived by the owner on Dec 14, 2021. It is now read-only.

Commit 582e548

Browse files
committed
Updates readme combiner example.
1 parent 7979836 commit 582e548

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ And finally return the desired observer's results from the combiner method:
7979
- (UIView *)scrollViewDelegateMultiplexer:(GOSScrollViewDelegateMultiplexer *)multiplexer
8080
viewForZoomingWithResults:(NSPointerArray *)results
8181
fromRespondingObservers:(NSArray *)respondingObservers {
82-
return [results pointerAtIndex:0];
82+
// Lets return the results from the oberserver which is equal to self.
83+
if (respondingObservers[0] == self) {
84+
return [results pointerAtIndex:0];
85+
}
86+
return nil;
8387
}
8488
```

0 commit comments

Comments
 (0)