SwiftUI: Create a Sound Visualizer.
Using the built-in microphone, sample the sound level in dB to visualize it in SwiftUI.
Published in
5 min readJan 24, 2020
This is what we are going to accomplish in this tutorial:
Getting Started
Create a new SwiftUI Project in Xcode. Make sure you’re running macOS Catalina and have Xcode 11 installed. (Allows you to use SwiftUI)
Open Xcode → File → New → Project → iOS → Single View App
Then hit next.
I called mine SoundVisualizer, but feel free to name it whatever you’d like.
Make sure you have User Interface set to SwiftUI.