SwiftUI: Create a Sound Visualizer.

Using the built-in microphone, sample the sound level in dB to visualize it in SwiftUI.

Brandon Baars
The Startup

--

Photo by Icons8 Team on Unsplash

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.

How are we going to accomplish this?

--

--

Brandon Baars
The Startup

Software Engineer | React Native | NestJS | UI/UX