AudioKit / AudioKitUI

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

NodeOutputView and NodeRollingView cannot have transparent backgrounds #42

Open ViaJables opened 2 years ago

ViaJables commented 2 years ago

Correct me if this is an error but I cannot get them to be transparent.

NickCulbertson commented 2 years ago

NodeOutputView is not transparent, but you can set the background color like this:

NodeOutputView(conductor.mixer, color: .purple, backgroundColor: .white, bufferSize: 1024)

NodeRollingView has not been updated to give access to the background color.

ViaJables commented 2 years ago

Is there a hack to make it transparent? I'm trying to add it to a visualeffectsview

NickCulbertson commented 2 years ago

Not that I know of. You can take a look at the FragmentBuilder or MetalFragment to see if something there allows the parent view layer to be transparent. It is using MetalKit to render.