hi Hopy! I guess the main reason is because you don’t tap a slider. A SO answer says you can’t scroll a scrollview through a top layer either.
Until SwiftUI gets its own version of userInteractionEnabled
, you might try creating a UIViewRepresentable
version of the rectangle