Skip to content

FFTView() backgroundColor variable not working correctly. #78

@rosspaterson001

Description

@rosspaterson001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions