diff --git a/Tusker/Screens/Timeline/TimelineViewController.swift b/Tusker/Screens/Timeline/TimelineViewController.swift index d28587c6..b822b49a 100644 --- a/Tusker/Screens/Timeline/TimelineViewController.swift +++ b/Tusker/Screens/Timeline/TimelineViewController.swift @@ -574,6 +574,11 @@ class TimelineViewController: UIViewController, TimelineLikeCollectionViewContro var count = 0 while count < 5 { count += 1 + + let crumb = Breadcrumb(level: .info, category: "TimelineViewController") + crumb.message = "scrollToItem, attempt=\(count)" + SentrySDK.addBreadcrumb(crumb) + let origOffset = self.collectionView.contentOffset self.collectionView.layoutIfNeeded() self.collectionView.scrollToItem(at: indexPath, at: .centeredVertically, animated: false)