Swift Productions
Published in

Swift Productions

SwiftUI | Play audio with AVAudioPlayer

iOS 14 introduced AVPlayer compatible with SwiftUI, Let’s play some music!

Photo by Juja Han on Unsplash

Difficulty: Beginner | Easy | Normal | Challenging

Environment : Xcode 12 & SwiftUI

Start a new Xcode project




Introducing Swift Productions: weekly articles and tutorials to learn how to build an App using Swift, SwiftUI & Firebase.

Recommended from Medium

Create List & Navigation using SwiftUI

2 iPhone displaying a SwiftUI list and a details view

New Photo Pickers for Android 13 and iOS 14

Show the direction of travel in iOS Google Maps

Connecting iOS AppDelegate, SceneDelegate, and ViewController

#mobile apps

Flutter’s Key Difference: Owning Every Pixel

Generics Vs Any Vs AnyObject

Google Maps on iOS Is Getting a Dark Mode… Finally

Google Maps on iOS Is Getting a Dark Mode... Finally

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sullivan De Carli

Sullivan De Carli

Consultant in iOS Dev at Deloitte. I write about Design & App development. Let’s have a chat at hello@sullivandecarli.com

More from Medium

How to add Firebase to a SwiftUI Project with SPM

SwiftUI with Xcode and Firebase logo

Image Scale Animation in SwiftUI

SwiftUI: Calculate Scroll Offset in ScrollViews

Flavors of SwiftUI Picker on macOS