HUBComponentWithScrolling
@protocol HUBComponentWithScrolling <HUBComponentWithChildren>
Extended Hub component protocol that adds the ability to scroll between child components.
Use this protocol if your component supports scrolling between components within it.
See HUBComponent for more info.
-
Called when programmatically scrolling to a child within this parent component.
Declaration
Objective-C
- (void)scrollToComponentAtIndex:(NSUInteger)childIndex scrollPosition:(HUBScrollPosition)scrollPosition animated:(BOOL)animated completion:(void (^)(void))completion;Parameters
childIndexThe index of the component that is being scrolled to.
scrollPositionThe preferred position of the component after scrolling.
animatedWhether or not the scrolling should be animated.
completionThe block to call once the component is visible.
View on GitHub
Install in Dash
HUBComponentWithScrolling Protocol Reference