Downloading HLS Livestream for Offline Usage in SwiftUI

I am developing an iOS app using SwiftUI, and I want to provide the functionality to download an HLS (HTTP Live Streaming) livestream for offline usage. However, I'm facing difficulties finding specific examples or tutorials on how to achieve this in SwiftUI.

Could anyone provide me with some guidance or point me to resources that demonstrate how to download HLS livestreams for offline playback using SwiftUI? I would appreciate any code snippets, libraries, or step-by-step explanations that can help me implement this feature successfully.

Thank you in advance for your assistance!

Downloading HLS Livestream for Offline Usage in SwiftUI
 
 
Q