Build a SwiftUI video-based application with AVPlayer and the Pexels API

DesignCode on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerUI43 min

About this video

Walks through building a SwiftUI video app that loads clips from the Pexels API. It covers coding the views, converting dummy JSON into a model, calling the API asynchronously and playing video with AVPlayer from AVKit.

What you’ll learn

  • Convert JSON data into a custom SwiftUI model
  • Call an API asynchronously in a SwiftUI app
  • Play video in an app with AVPlayer from AVKit