Build a Meditation (Audio Player) App in SwiftUI with AVKit Part 2

DesignCode on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI38 min

About this video

This is part two of a SwiftUI tutorial on building a meditation audio player. It uses AVAudioPlayer from AVKit, with Combine and MVVM connecting playback logic to the views, and makes the playback controls work for play, pause, backward, forward, stop and repeat.

What you’ll learn

  • Play audio with AVAudioPlayer in a SwiftUI app
  • Connect playback state to views with Combine and MVVM
  • Wire play, pause, skip and repeat controls to a playback view