From bfc97f908fc008f26769e166f28a0d88b20cc8cb Mon Sep 17 00:00:00 2001 From: Aviral Aggarwal Date: Wed, 25 Jul 2018 06:42:07 -0700 Subject: [PATCH] Missing documentation - Added Param detail for [IGListScrollDelegate listAdapter:didEndDraggingSectionController:willDecelerate:] (#1222) Summary: Issue fixed: #1220 - [x] All tests pass. Demo project builds and runs. - [x] Added proper documentation to the decelerate param. The documentation is taken from [Apple docs](https://developer.apple.com/documentation/uikit/uiscrollviewdelegate/1619436-scrollviewdidenddragging) - [x] I added an entry to the CHANGELOG.md for any breaking changes, enhancements, or bug fixes. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) - This is my first pull request for IGListKit so please let me know if I am following the pattern correctly or not. Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1222 Differential Revision: D8990058 Pulled By: rnystrom fbshipit-source-id: 7011427c242a61efb79183dbb588c11086926180 --- Source/IGListScrollDelegate.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/IGListScrollDelegate.h b/Source/IGListScrollDelegate.h index 843a105c..30be4201 100644 --- a/Source/IGListScrollDelegate.h +++ b/Source/IGListScrollDelegate.h @@ -41,6 +41,8 @@ NS_SWIFT_NAME(ListScrollDelegate) @param listAdapter The list adapter whose collection view ended dragging. @param sectionController The visible section controller that ended dragging. + @param decelerate 'Yes' if the scrolling movement will continue, but decelerate, after a touch-up gesture during a + dragging operation. If the value is 'No', scrolling stops immediately upon touch-up. */ - (void)listAdapter:(IGListAdapter *)listAdapter didEndDraggingSectionController:(IGListSectionController *)sectionController willDecelerate:(BOOL)decelerate;