当日cellへ移動処理表示後のUIViewControllerのライフサイクルのviewDidAppear
にてscrollToItemを利用してスクロールとanimated: false指定で処理。
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
print("aaaaaaaaaaaaaaaaa")
let indexPath = IndexPath(item: elapsedDays + 5, section: 0)
myCollectView.scrollToItem(at: indexPath, at: .centeredVertically, animated: false)
//tableViewではitemがrowで指定する。
//myCollectView.scrollToItem(at: IndexPath(row: 100, section: 0), at: .left, animated: false)
//myCollectView.reloadData()
}