Skip to content

Commit

Permalink
animation fix on collection view
Browse files Browse the repository at this point in the history
  • Loading branch information
grenos committed Apr 13, 2020
1 parent 5e64bca commit 5a48815
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions GHFollowers/Screens/FollowerListVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ extension FollowerListVC: FollowerListVCDelegate {
// reset items from arrays
followers.removeAll()
filteredFollowers.removeAll()
// set collectionView to starting point
collectionView.setContentOffset(.zero, animated: true)
// animate collection to first row of collection
collectionView.scrollToItem(at: IndexPath(item: 0, section: 0), at: .top, animated: true)
// make the call to get followers with new username
getFollowers(username: username, page: page)
}
Expand Down

0 comments on commit 5a48815

Please sign in to comment.