-
Notifications
You must be signed in to change notification settings - Fork 33
Adding a completion handler to the scrollToSection API.
#585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a completion handler to the scrollToSection API.
#585
Conversation
0e8a438 to
0fe806b
Compare
3cea6ac to
10613e8
Compare
10613e8 to
2c2469a
Compare
kyleve
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
g-mark
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
| scrollExpectation.fulfill() | ||
| } | ||
| ) | ||
| wait(for: [scrollExpectation], timeout: 0.5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine as is, but I wonder if we could either disable animations on the view (if it doesn't interfere with the scrolling behavior) or use something like window.layer.speed = 4 to speed up the testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion. I've set the window speed to 4 for these tests. That may reduce the test duration a bit in CI. (UIView.setAnimationsEnabled(false) causes unit tests to break, so I'll stick with the window speed for now.)
…-headerfooters * origin/main: build: set up tuist (#584) Bumping versions to 16.3.0 (#589) Reset scroll position if list identifier changes (#588) Bumping versions to 16.2.0 (#587) Adding a completion handler to the `scrollToSection` API. (#585) Adding a programmatic scroll completion handler (#582) Remove iOS 19 (26) cap of the collection view first responder workaround (#581) Bumping versions to 16.1.0 (#583) Update for Blueprint 6.0.0 (#580) Bumping versions to 16.0.4. (#579) Update the first responder resignation workaround to be enabled by default and cap at < iOS 19 [UI-8849] (#578) Bumping versions to 16.0.3 (#577) Bottom gravity and autoscroll improvements (#576) Bumping versions to 16.0.2 (#574) Addressing an AutoScrollAction issue when using VerticalLayoutGravity.bottom (#572) release: Prepare 16.0.1 release (#569) Fix reordering crash introduced in 16.0 (#568)
This builds on the changes in #582, adding a completion handler to the

scrollToSection(...)API. This also adds a demo to showcase this API with various configurations:Checklist
Please do the following before merging:
Mainsection.