Now that we can get media items from the CanvasView, we will display them in an Album. This album will be animated using UIDynamicAnimator paired with UISnapBehavior. We will have some cool animations for snapping views or controls into position without directly using UIViewAnimation.
Chapters:
0:00 Using UISnapBehavior to Animate Movement
0:37 Setting up AlbumViewController
1:20 Adding UIDynamicAnimator
2:19 Animating View Movement with UISnapBehavior
3:53 Embedding AlbumViewController in UIViewControllerRepresentable
10:36 Passing Views from the CanvasView to AlbumViewController
14:07 Separating Album into AlbumPages
19:46 Adding Previous and Next Arrows
22:43 Dragging Arrows with UIPanGestureRecognizer
26:23 Snapping Arrows Back when Drag Gesture Ends
32:22 Navigating the Album Pages
Source code: https://github.com/codingWithTom/Coll...
Collage playlist: • Collage
UIPanGestureRecognizer video: • Using UIKit Gestures - Draw Part 1
Intro song: All That from Bensound.com
Outro song: Endless Motion from Bensound.com