Ahsan
Ahsan

Reputation: 501

Audiokit plot waveform in going out of the View

I was testing Microphone Analysis example provided in audiokit repo. I have noticed that the plot drawing waveform out of its view. is there any solution to fix this ?

enter image description here

Upvotes: 2

Views: 158

Answers (1)

Aurelius Prochazka
Aurelius Prochazka

Reputation: 4573

Its just a UIView right, so you should be able clipToBounds:

https://developer.apple.com/documentation/uikit/uiview/1622415-clipstobounds

Upvotes: 1

Related Questions