CompactSlider icon indicating copy to clipboard operation
CompactSlider copied to clipboard

using scroll wheel with slider causes XCode SwiftUI API warning

Open robaho opened this issue 10 months ago • 4 comments

Using XCode 16.2 and OSX 15.3

The code

        if progress.update(roundedValue, at: progressAndIndex.index) {
            HapticFeedback.vibrate(isEnabled: isHapticFeedbackEnabled)
        }

causes the following warning to be emitted:

Modifying state during view update, this will cause undefined behavior.

and it happens continually while scrolling.

Image

robaho avatar Mar 26 '25 05:03 robaho

Thanks! I'll take a look into it.

buh avatar Mar 26 '25 09:03 buh

Try v.2.0.9

buh avatar Mar 26 '25 10:03 buh

I tried with v2.0.9 and am seeing the exact issue, on the same line.

robaho avatar Mar 26 '25 15:03 robaho

I have no ability to re-open an issue - and I supposed to open a new issue?

robaho avatar Mar 26 '25 15:03 robaho