@objc internal func scrollToBottom(_ animated: Bool = false) {
let boundsHeight = collectionView?.bounds.size.height ?? 0
let sizeHeight = collectionView?.contentSize.height ?? 0
let offset = CGPoint(x: 0, y: max(sizeHeight - boundsHeight, 0))
collectionView?.setContentOffset(offset, animated: animated)
scrollToBottomButtonIsVisible = false
}
Không có nhận xét nào:
Đăng nhận xét