AudioKit / AudioKitUI

Controls and Visualization for AudioKit apps
MIT License
187 stars 52 forks source link

FFTView() backgroundColor variable not working correctly. #78

Open rosspaterson001 opened 5 months ago

rosspaterson001 commented 5 months ago

macOS Version(s) Used to Build

macOS 13 Ventura

Xcode Version(s)

Xcode 14

Description

Hi, pretty new to all this (using for a uni project) but pretty sure I have identified an error in the FFTView struct.

In FFTView.swift navigate to the body view, and there is an if statement: if let amplitude = fft.amplitudes[$0]{ In the amplitude bar call in the if function(line 143), I believe it should pass: backgroundColor: backgroundColor)

It passes it in the else statement so it should be passed in the if statement too, correct?

I would fork and stuff, but this is my first time properly using version control and I don't want to mess with stuff and delete my code before I know what I'm doing, sorry!

Crash Logs, Screenshots or Other Attachments (if applicable)

With original code:

Screenshot 2024-01-19 at 15 02 35

With amended code:

Screenshot 2024-01-19 at 15 01 48