swiftui-sliders icon indicating copy to clipboard operation
swiftui-sliders copied to clipboard

Implement custom thumbOffset

Open anatoly-os opened this issue 11 months ago • 0 comments

The custom offset set to 0 is necessary to show sliders that require thumb to be center-aligned with the actual slider value (e.g. sliders with explicit notches). Default iOS slider and the sliders in your library changes its value from thumb's leftmost edge to the thumb rightmost edge (it is clear when you make thumb semi-transparent).

Screenshot 2024-12-23 at 02 18 52 Screenshot 2024-12-23 at 02 21 37

anatoly-os avatar Dec 22 '24 23:12 anatoly-os