We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
reachedBottomPublisher
Appears the UIScrollView.reachedBottomPublisher offset is not working as expected.
UIScrollView.reachedBottomPublisher
Currently the threshold is calculated by using max bracketing on offset of calculating the y to compare using visible height:
threshold
let threshold = max(offset, self.contentSize.height - visibleHeight)
However in order for this to work the publisher would have to be setup as:
collectionView .reachedBottomPublisher(collectionView.contentSize.height - visibleHeight - offset) .sink {
Which I don't believe is correct given when dynamically inserting content the content size will change.
The text was updated successfully, but these errors were encountered:
I believe the threshold needs to be calculated considering the offset such as:
let threshold = (self.contentSize.height - visibleHeight) - offset
Sorry, something went wrong.
@freak4pc - are you happy to add us to as a maintainer to this repo as you don't need to be maintaining this repo? It's last merge was two years ago.
No branches or pull requests
Appears the
UIScrollView.reachedBottomPublisher
offset is not working as expected.Currently the
threshold
is calculated by using max bracketing on offset of calculating the y to compare using visible height:However in order for this to work the publisher would have to be setup as:
Which I don't believe is correct given when dynamically inserting content the content size will change.
The text was updated successfully, but these errors were encountered: