Ramotion / fluid-slider

:octocat:💧 A slider widget with a popup bubble displaying the precise value selected. Swift UI library made by @Ramotion

Home Page:https://www.ramotion.com/fluid-slider/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Negative number

MariaJsn opened this issue · comments

I want to start my slider from -100 to 100.
I can set the -100 on slider but when I try to slide bubble not show negative numbers.
Is it possible to work with negative numbers?

the fraction goes from 0.0 to 1.0, so you can just say your resulting value = fraction * 200 - 100 and have a needed display range