AudioKitUI icon indicating copy to clipboard operation
AudioKitUI copied to clipboard

FFTView() backgroundColor variable not working correctly.

Open rosspaterson001 opened this issue 1 year ago • 0 comments

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

rosspaterson001 avatar Jan 19 '24 15:01 rosspaterson001