AudioKitUI icon indicating copy to clipboard operation
AudioKitUI copied to clipboard

NodeOutputView and NodeRollingView cannot have transparent backgrounds

Open ViaJables opened this issue 3 years ago • 3 comments

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

ViaJables avatar Jan 14 '22 20:01 ViaJables

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.

NickCulbertson avatar Jan 14 '22 21:01 NickCulbertson

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

ViaJables avatar Jan 16 '22 20:01 ViaJables

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.

NickCulbertson avatar Jan 17 '22 12:01 NickCulbertson