I'm trying to scroll to the bottom of a UICollectionView implemented with IGListKit. My method to do so:
func scrollToBottom(animated: Bool = true) {
if let last = self.adapter.objects().last {
self.adapter.scroll(
to: last,
supplementaryKinds: nil,
scrollDirection: UICollectionViewScrollDirection.vertical,
scrollPosition: UICollectionViewScrollPosition.bottom,
animated: animated)
}
}
This does scroll to the last item, however, it did not scroll to the bottom of the last object.
The actual result:
The desired result:
Any suggestions how to get my desired result?

