actually its from here: https://www.letsbuildthatapp.com/course_video?id=4162
you tell me to get that course to learn notification center while keyboard is showing up. Simple, I'm trying to scroll all the way down to the latest comment.
UIView.animate(withDuration: 0, delay: 0, usingSpringWithDamping: 0.8, initialSpringVelocity: 0, options: .curveEaseInOut, animations: {
self.view.layoutIfNeeded()
}, completion: { (completed) in
if self.isFirstResponder {
let indexPath = NSIndexPath(item: self.comments.count - 1, section: 0)
self.collectionView.scrollToItem(at: indexPath as IndexPath, at: .bottom, animated: true)
}
})
No luck. On your video you just say stackView make it lazy and then you work from there. on this chat. https://www.letsbuildthatapp.com/course_video?id=152
24:43 you don't have stackView but you just pull the padding constraint of the container. two different examples and I can't get it done.