Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

(Swift 3 / Java) Slider view with pan controls and custom indication.

License

Notifications You must be signed in to change notification settings

ysoftware/SliderView

Repository files navigation

SliderView

A view that acts like a UISlider but has no visible interface. Pan in any direction to change its value.

Properties:

Just like UISlider: value, maxValue, minValue.

How far should user swipe before slider changes value: resolution.

Sensitivity to user's gestures: sensitivity.

You can set your own object as indicator, just conform to SliderViewIndicator protocol.

Or you can observe events using this delegate method:

 func sliderView(_ sliderView: SliderView, valueChanged value: Float)

SliderViewHorizontalIndicator

A minimalistic view that can be set as indicator of SliderView.

Properties:

Just like SliderView: value, maxValue, minValue.

Relative padding of the indicator: relativePadding

Defines the behaviour of the indicator: anchor. Can be .left, .right or .center.

Colour of the indicator: foregroundColour.

alt text

alt text

alt text

alt text

About

(Swift 3 / Java) Slider view with pan controls and custom indication.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /