macosx: Add a real carousel for recents in library
This MR implements a basic carousel container for recent videos in the video library view. This brings several benefits over the previous collection view based carousel, including inertial flicking and scrolling, item wrapping (i.e. infinite carousel), improved animations, and more. It's still a bit rough around the edges but in its current form it works
Screen_Recording_2023-10-22_at_23.34.12
The bulk of these changes come from the addition of iCarousel
classes which provide an implementation of carousels in AppKit. The code is taken from here: https://github.com/nicklockwood/iCarousel -- from the legal perspective the license seems very permissive and ok, but IANAL. From the software perspective I chose to simply vendor the two relevant iCarousel.h
and iCarousel.m
. I have made a couple of small changes to fix bugs in it. If none of this is appropriate, please let me know
Signed-off-by: Claudio Cambra developer@claudiocambra.com