How to find the scroll difference of a UITableView. I need to find the difference of scrolling Tableview content from top position of table in swift
I tried the code below,
func scrollViewDidScroll(_ scrollView: UIScrollView) {
let contentOffset = tableview.frame.origin.y
let maximumOffset = (contentOffset - scrollView.contentOffset.y)
let dif = maximumOffset
}
source
share