FLUID SLIDER
A slider widget with a popup bubble displaying the precise value selected written on Swift.
Requirements
- iOS 10.0
- Xcode 9
- Swift 4.0
Installation
You can install fluid-slider
in several ways:
- Add source files to your project.
- Use CocoaPods:
- Use Carthage:
github "Ramotion/fluid-slider"
Usage
Slider
The slider can be inserted in a view hierarchy as a subview. Appearance can be configured with a number of public attributes:
Take a look at the Example
project for an integration example.
Since Slider
is a subclass of UIControl
, it inherits target-action mechanics and it's possible to listen for user-triggered value changes:
Tracking Behavior
There are a couple of callbacks which allow you to listen to the slider's tracking events:
Animation Performance
This control is designed to use device CPU resources with care. The fluid-style animation will be disabled when low power mode is enabled or the system is under heavy load.