Smooth slider in the style of Apple. Help🙏

help me please create such a slider in swift ui, I could not find it on YouTube or on the forums.

Questions like this are better asked on the Apple Developer Forums, since they are not about the Swift language specifically.

there is a button design, I need to understand how to write a function that allows you to change the number of rectangles filled with color, when you move your finger in swift UI
thanks for the answer

SwiftUI is a private Apple framework. @Jumhyn advice is still applicable.

Thanks Bro :pray: :fist_right::boom::fist_left: