Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sliderLine Static left padding (16) #97

Open
hasanalbukhari opened this issue Sep 27, 2020 · 1 comment
Open

sliderLine Static left padding (16) #97

hasanalbukhari opened this issue Sep 27, 2020 · 1 comment

Comments

@hasanalbukhari
Copy link

The slider line layer is added to the RangeSeekSlider layer with 16 as the x value.

let barSidePadding: CGFloat = 16.0

Screen Shot 2020-09-28 at 2 32 04 AM

I guess you didn't want to have the handle outside the slider or maybe so that the user can actually pass the touches.

I guess this need to be changed to handleDiameter/2.0

I am trying to add a custom labels and move them with the handles. the thing is this 16 static value messes with the calculations. I had to hard code this value in my code.

@hasanalbukhari
Copy link
Author

hasanalbukhari commented Sep 27, 2020

maybe add padding parameter and the coder can change it.
note that handles are visible outside the slider when setting clip to bounds to false.
so there is no issue for the handles to be invisible. but all the concern is with the touches to get passed I guess.

maybe the best solution is to add padding as an IBInspectable and the "user" can change it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant