Waveform icon indicating copy to clipboard operation
Waveform copied to clipboard

Waveform in UIHostingController in UIScrollView gets cut off

Open willswinson opened this issue 1 year ago • 0 comments

macOS Version(s) Used to Build

macOS 13 Ventura

Xcode Version(s)

Xcode 14

Description

I have a Waveform inside a UIHostingController to work with UIKit. That UIHostingController view is inside a UIScrollView.

There seems to be a bug where if you scroll away from the Waveform (to where its not visibile anymore), and then scroll back to it, a portion of the beginning of the wave gets removed or there is padding added.

If I debug the views, the UIHostingController is the correct size, but the Waveform view it contains gets some kind of padding to the left side (horizontal scrolling). If I rebuild the views, it corrects itself. It only happens when I scroll the view back to the visible area.

Crash Logs, Screenshots or Other Attachments (if applicable)

No response

willswinson avatar May 09 '24 08:05 willswinson