Fix places I forgot to fix 🙈 (IOS-272)
This commit is contained in:
parent
f7973b317b
commit
e2d7cd6cf9
|
@ -127,7 +127,6 @@ extension BookmarkViewController: StatusTableViewControllerNavigateable {
|
|||
extension BookmarkViewController: UIScrollViewDelegate {
|
||||
func scrollViewDidScroll(_ scrollView: UIScrollView) {
|
||||
Self.scrollViewDidScrollToEnd(scrollView) {
|
||||
print("See me loading \(Date())")
|
||||
viewModel.stateMachine.enter(BookmarkViewModel.State.Loading.self)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -164,18 +164,7 @@ extension FollowingListViewController: DataSourceProvider {
|
|||
|
||||
extension FollowingListViewController: UIScrollViewDelegate {
|
||||
func scrollViewDidScroll(_ scrollView: UIScrollView) {
|
||||
|
||||
if scrollView.isDragging || scrollView.isTracking { return }
|
||||
|
||||
let frame = scrollView.frame
|
||||
let contentOffset = scrollView.contentOffset
|
||||
let contentSize = scrollView.contentSize
|
||||
|
||||
let visibleBottomY = contentOffset.y + frame.height
|
||||
let offset = 2 * frame.height
|
||||
let fetchThrottleOffsetY = contentSize.height - offset
|
||||
|
||||
if visibleBottomY > fetchThrottleOffsetY {
|
||||
Self.scrollViewDidScrollToEnd(scrollView) {
|
||||
viewModel.shouldFetch.send()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue