Swift Collection View Check If You Are At The Bottom

[Solved] Swift Collection View Check If You Are At The Bottom | Swift - Code Explorer | yomemimo.com
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

Answers related to swift collection view check if you are at the bottom

Code Explorer Popular Question For Swift