How to Create a Simple Music Player App in SwiftUI

preview_player
Показать описание
How to create a simple music player app in SwiftUI. In this SwiftUI tutorial, I will show you how to create a custom music player app using an AVAudioPlayer from AVKit. It will have a custom color scheme and you will also learn how to organize the app using ZStacks, VStacks, and HStacks. This is a follow up to my video on how to do this using UIKit which I will have linked below.

Music:

Song 1:

Song 2:

Song 3:

#SwiftUI #Music #AppleDeveloper
Рекомендации по теме
Комментарии
Автор

Excellent tutorial - a simple, clear explanation. Thank you!

draytond
Автор

Thanks a lot Josh for such a great video . Looking forward to see more such videos.

GG-hkiz
Автор

Hey, I was following your tutorial and I had a hiccup around 4:20


I tried my code after 2:57 and got the same result you did. However, in the code added after that (approximately 3:00 up until you run it again at 4:30), I get an error in the text function that was previously working fine.
I get a red line under "system" (the part of the code where I am putting the text on the screen) and it says "type of expression is ambiguous without more context. I find it very confusing because that code works fine before the 3:00 mark and after I add in the stuff following that it no longer works.

crazygamer
Автор

Very helpful! How would I let the trans play one after another with out skipping track??

Gamecelebz
Автор

Thanks, that was excellent and well explained

LeaTamola
Автор

Hi Josh, how to stream remote audio in iOS 13? (SwiftUI)
Can you help? Thanks

firemob
Автор

Hello man, and thanks I’m trying a similar app, but in my case is streaming and I would to ask you how to use two buttons but I don’t know if using if-else or while-do, and where could I insert the url and how is the method? I like your version cause xCode11 show when I compile a black screen and I can keep the background sound, but I can’t fix how to don’t show that new display after play if I prefer to navigate in my own app, man thanks and I hope your answer pronto.

chichemeshop
Автор

I think these videos has made by your macbook that you reviewed ? right ?

javohir
visit shbcf.ru