Question : swift collection view check if you are at the bottom
Answered by : aris-g
func scrollViewDidScroll(_ scrollView: UIScrollView) { let height = scrollView.frame.size.height let contentYoffset = scrollView.contentOffset.y let distanceFromBottom = scrollView.contentSize.height - contentYoffset if distanceFromBottom < height { print(" you reached end of the table") }
}
Source : https://stackoverflow.com/questions/39015228/detect-when-uitableview-has-scrolled-to-the-bottom | Last Update : Thu, 20 Aug 20