-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exposes
UIScrollViewDelegate
to clients (#133)
*Have you read the [Contributing Guidelines](https://github.com/jessesquires/.github/blob/master/CONTRIBUTING.md)?* 🖤 Closes #131 ## Describe your changes - Allows clients to set a `weak var scrollViewDelegate: UIScrollViewDelegate?` on `CollectionViewDriver` - Implement the `UIScrollViewDelegate` methods in `CollectionViewDriver` and forwards them to this delegate - Keeps the method signatures in the same order and groupings as `UIScrollViewDelegate` ### Example - Adds example to `ListViewController`, demonstrating an override of `scrollViewShouldScrollToTop(scrollView:)` | Before | After | | ------ | ----- | | ![rf_131_before](https://github.com/user-attachments/assets/7d0dfd8b-1be2-4eef-8899-65503b783ed0) | ![rf_131_after](https://github.com/user-attachments/assets/3ec172c8-ad56-47ce-8e23-89cf0828ab66) | ## Todo - Add unit tests. --------- Co-authored-by: Jesse Squires <jessesquires@users.noreply.github.com>
- Loading branch information
1 parent
ec6e83e
commit c3ca6c7
Showing
3 changed files
with
118 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters