Level Up Your SwiftUI iOS App: Add Sound Effects & Music

Опубликовано: 22 Февраль 2025
на канале: NDC
57
2

🎶 Make Your SwiftUI App More Interactive with Sound Effects! 🚀
Links used in the video:
System Sounds: https://github.com/TUNER88/iOSSystemS...
Pixabay https://pixabay.com/sound-effects/
Open Game art: https://opengameart.org/
YT audio Library:    / audiolibrary  

Want to add satisfying button clicks, notification sounds, or background effects? In this tutorial, I’ll show you how to integrate custom sound files & built-in iOS system sounds in SwiftUI!

🔊 What You’ll Learn:
✅ Use AVAudioPlayer to play imported sound effects 🎵
✅ Trigger built-in iOS system sounds without importing files 🔊
✅ Improve app feedback & interactivity using sound
✅ Follow accessibility best practices for inclusive design 🦻

Perfect for UI interactions, sound-based games, and custom app sounds!

🔥 Download My Project Files & More! 🔥
👉 Get the source code & Swift resources here:
🔗 https://ndcswift.github.io/Swift-Proj...


👨‍💻 Join the Community:
💬 Drop a comment if you have questions!
👍 Like & Subscribe for more hands-on SwiftUI & iOS Development tutorials!

Timestamps:
0:00 Intro & Example
1:15 Project Setup
1:29 Adding SoundManager
2:46 Playing Imported sound
5:36 Playing Background Music
9:16 Downloading Royalty free sounds / music
10:21 Adding Sound Files to your XCode project
12:15 Playing Imported Sound
13:44 Playing System Sound
16:00 Toggling BGM
17:14 Fixing BGM Toggle issue
18:01 Wrap up & How to use sounds in your app