Skip to content

Conversation

joelekstrom
Copy link
Owner

Handling correct scrolling to items required special handling in this
class, since UICollectionView does not expect layouts to have items
outside the scrollable bounds. It was solved by swizzling the method
and forwarding it to the layout (if the layout is the correct class).

Also adds a new public API:
- (void)setHorizontalOffset:(CGFloat)offset forSectionAtIndex:(NSUInteger)index animated:(BOOL)animated;

This might improve AppleTV support, hopefully fixing the problem
described in #17

Handling correct scrolling to items required special handling in this
class, since UICollectionView does not expect layouts to have items
outside the scrollable bounds. It was solved by swizzling the method
and forwarding it to the layout (if the layout is the correct class).

Also adds a new public API:
- (void)setHorizontalOffset:(CGFloat)offset forSectionAtIndex:(NSUInteger)index animated:(BOOL)animated;

This might improve AppleTV support, hopefully fixing the problem
described in #17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant