Fix places I forgot to fix 🙈 (IOS-272)

This commit is contained in:
Nathan Mattes 2024-05-28 22:44:33 +02:00
parent f7973b317b
commit e2d7cd6cf9
2 changed files with 1 additions and 13 deletions

View File

@ -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)
}
}

View File

@ -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()
}
}