Reading time: 6 min

This recipe shows how to play a YouTube video in SwiftUI. The end result looks like this:

Preview iOS

This component is available as a Swift Package in this repo.

This recipe shows only a part of the YouTubePlayer component's functionality, namely that to load a video, play and pause it. Thi...

Continue Reading...

Reading time: 3 min

This recipe shows how to play videos in SwiftUI. It also shows how to add more advanced functionality, such as playing a sequence of videos, adding loop playback and custom end actions. The end result looks like this:

preview

If you wish to know more about what happens in that video, visit th...

Continue Reading...