CenteredUISlider

master

mohammed1955/CenteredUISlider

CenterdUISlider

License


Features

  1. You can use it with storyboard and Programmatically
  2. Easy to customize and interact
  3. Negative value included

Requirements

  • iOS 11.0+
  • Xcode 10+

Swift Package Manager

CenterdUISlider is available through Swift Package Manager. To install it, simply go to Xcode under File > Swift Packages > Add Package Dependency...

Manually

If you prefer not to use SPM, you can integrate CenterdUISlider into your project manually.

Usage

Storyboard

You can use CenterdUISlider from storyboard easily By changing the type of a regular UIView into CenterdUISlider and set its Moudle to be CenterdUISlider.

Programmatically

    let centerdSlider = CenteredUISlider()
    centerdSlider.rangeValue = 50 // The value will be between -25 to 25
    centerdSlider.progressColor = .purple
    
    centerdSlider.getSLiderValue = { value in
        print(value)
    }

Author

Mohammed Reza Ghate

License

CenteredUISlider is available under the MIT license. See the LICENSE file for more info.

Description

  • Swift Tools 5.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Oct 18 2024 11:46:15 GMT-0900 (Hawaii-Aleutian Daylight Time)