dmrschmidt / DSWaveformImage

Generate waveform images from audio files on iOS, macOS & visionOS in Swift. Native SwiftUI & UIKit views.
MIT License
980 stars 109 forks source link

Support clear background #27

Closed vburojevic closed 2 years ago

vburojevic commented 2 years ago

If the background color config is set to clear, the waveform background is black.

I see that this commit a few years back fixed that, but I guess it got broken again since the drawing logic uses a different API now.

is it possible to have a clear background with this version?

dmrschmidt commented 2 years ago

Hey @vburojevic,

are you sure the black background isn't set by anything else? If I run the current example app, the backgrounds of the top and bottom views there are transparent, in fact.

see the README screenshot taken directly from the app

vburojevic commented 2 years ago

@dmrschmidt yes, you're correct, I guess it has black background because I put it in an UIStackView, for some reason. But that's not an issue with this lib I think, so closing.

Thanks and sorry for reporting an issue with the lib since it wasn't!

dmrschmidt commented 2 years ago

No worries at all, I'm always here to try and help :)