Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save michal-majchrzycki/adbab19886c1d3c37d8709c442ad93c4 to your computer and use it in GitHub Desktop.
Save michal-majchrzycki/adbab19886c1d3c37d8709c442ad93c4 to your computer and use it in GitHub Desktop.
func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) {
if calendarCollectionView == scrollView && !decelerate {
setSelectedItemFromScrollView(scrollView)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment