skagedal / bottomsheet Goto Github PK
View Code? Open in Web Editor NEWAn example project for a blog post on how to create an iOS Bottom Sheet
An example project for a blog post on how to create an iOS Bottom Sheet
Hello Simon!
Nice repo, it's working great and I like it.
I've been using the same approach in one of the projects I've been working on and it turns out that there's one problem I'd like to talk to you about. This solution works very well as the tableView
is static. However, if you have to reload the tableView
at some point during the scrolling animation, it can lead to unexpected visual bugs. In order to reproduce the issue, the following conditions should be met:
tableView
should change (i.e. set a different number of rows)reloadData
should be called during the scrolling animationAs the result, one of the following can happen:
tableView
stops scrolling and its contentOffset
is stuck in between the two snapping points;tableView
abruptly jumps back to its previous position or to zero offsetThe obvious solution that comes to mind is to defer the reloading until the moment the scrolling is finished, e.g. call reloadData at scrollViewDidEndDecelerating
or scrollViewDidEndScrollingAnimation
, but I've tried this and it still won't work.
I would like to know if you have any ideas on this topic.
Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.