This project is really amazing for rendering HLSStreams and video in general. Especially on SwiftUI.

It exposes the metal textures prior to rendering which you can also tweak if you wanted to add some layer of effects in between.

And honestly overall having the ability to use ffmpeg easily as a swift package is a huge plus.

This is their FFmpeg kit: https://github.com/kingslay/FFmpegKit/tree/main

Here’s the SwiftUI implementation example: https://github.com/kingslay/KSPlayer/tree/develop/Demo/SwiftUI