Swiftpack.co -  Rahul-Mayani/RRRangeSliderSwiftUI as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Custom range slider in SwiftUI
.package(url: "https://github.com/Rahul-Mayani/RRRangeSliderSwiftUI.git", from: "1.0.0")


License: MIT iOS Swift 5+ RangeSlider SwiftUI SPM

Custom range slider in SwiftUI


SPM (Swift Package Manager)

In Xcode, use the menu File > Swift Packages > Add Package Dependency... and enter the package URL https://github.com/Rahul-Mayani/RRRangeSliderSwiftUI.


  1. Download the project.
  2. Add RRRangeSliderSwiftUI.swift file for slider view
  3. Add necessary files in your project.
  4. Congratulations!

Usage example

To run the example project, clone the repo, and run pod install from the Example directory first.

alt text

@State var minValue: Float = 0.0
@State var maxValue: Float = Float(UIScreen.main.bounds.width - 50.0)

var body: some View {
    VStack {
        Text("Range Slider")
        /// slider view
            minValue: self.$minValue, // mimimum value
            maxValue: self.$maxValue, // maximum value
            sliderWidth: CGFloat(maxValue), // set slider width
            backgroundTrackColor: Color(UIColor.systemTeal).opacity(0.5), // track color
            selectedTrackColor: Color.blue.opacity(25), // track color
            globeColor: Color.orange, // globe background color
            globeBackgroundColor: Color.black, // globe rounded border color
            globeMinMaxValuesColor: Color.black // all text label color


We would love you for the contribution to RRRangeSliderSwiftUI, check the LICENSE file for more info.


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


Stars: 8
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

SPM support
2 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API