Skip to content

Commit

Permalink
[Fix] TeamSparker#351 - HomeVC 컬렉션뷰 살짝 스크롤된 현상 해결
Browse files Browse the repository at this point in the history
- scrollToItem 속성을 bottom 으로 설정해줌
  • Loading branch information
hyun99999 committed Mar 13, 2022
1 parent 6175b17 commit ccbbeeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class HomeVC: UIViewController {

DispatchQueue.main.async {
self.habitRoomFetchWithAPI(lastID: self.habitRoomLastID) {
self.mainCollectionView.scrollToItem(at: IndexPath(item: 0, section: 0), at: .top, animated: false)
self.mainCollectionView.scrollToItem(at: IndexPath(item: 0, section: 0), at: .bottom, animated: false)
}
}
}
Expand Down

0 comments on commit ccbbeeb

Please sign in to comment.