I wonder how TikTok/Instagram caches the video so the playing is so smooth. I was thinking about downloading them on a sequence and allow user to skip n video only when n+1 is downloaded. But where should I store/download it? Should I use NACache for that or just save them in app temp with FileManager?
Also some pseudo-code of how to do that with SwiftUI might be very helpful. 🙏🏼