Avatar
.scrollTargetLayout()をLazyHGridにつけて、ScrollViewに.scrollPosition(id: $scrollPosition)とかして、scrollPositionをframeが変わったときに調整すれば自動でスクロールできるようになります。 https://github.com/niw/AnimationPlayer/blob/master/AnimationPlayer/Sources/AnimationPlayerView.swift#L107-L111 (edited)