## Introduction
Welcome to the documentation for the RangeSeekSlider library! This library provides a customizable range slider component for iOS.
## Table of Contents
– [Getting Started](#getting-started)
– [Installation](#installation)
– [Usage](#usage)
– [Configuration](#configuration)
– [Customization](#customization)
– [Delegate](#delegate)
– [Contributing](#contributing)
– [License](#license)
## Getting Started
This guide will help you get up and running with the RangeSeekSlider library. You will find detailed instructions on how to install, use, and customize the range slider.
## Installation
You can install RangeSeekSlider through CocoaPods. To add the library to your project, follow these steps:
1. Open your project’s `Podfile` and add the following line:
“`
pod ‘RangeSeekSlider’
“`
2. Save the `Podfile` and run `pod install` in the terminal.
3. Open your Xcode workspace or project and import the RangeSeekSlider module.
## Usage
To create a basic range slider, add the following code to your project:
“`swift
import RangeSeekSlider
let rangeSlider = RangeSeekSlider(frame: CGRect(x: 20, y: 50, width: 300, height: 30))
view.addSubview(rangeSlider)
“`
This will create a range slider with default configuration settings.
## Configuration
The RangeSeekSlider provides various configuration options to customize its appearance and behavior. Here are some of the available properties:
– `minValue`: The minimum value for the range slider.
– `maxValue`: The maximum value for the range slider.
– `selectedMinValue`: The initial selected minimum value for the range slider.
– `selectedMaxValue`: The initial selected maximum value for the range slider.
For a complete list of configuration options, please refer to the documentation.
## Customization
You can customize the appearance of the range slider by modifying its properties. Here are some examples:
– Changing the track color:
“`swift
rangeSlider.colorBetweenHandles = UIColor.red
“`
– Adjusting the handle images:
“`swift
rangeSlider.selectedHandleImage = UIImage(named: “selectedHandle”)
rangeSlider.unselectedHandleImage = UIImage(named: “unselectedHandle”)
“`
For more details on customization options, please refer to the documentation.
## Delegate
The RangeSeekSliderDelegate protocol allows you to respond to events and changes in the range slider’s values. To implement the delegate methods, follow these steps:
1. Set the delegate for your range slider instance:
“`swift
rangeSlider.delegate = self
“`
2. Conform to the `RangeSeekSliderDelegate` protocol in your view controller:
“`swift
class ViewController: UIViewController, RangeSeekSliderDelegate {
// …
}
“`
3. Implement the delegate methods:
“`swift
func rangeSeekSlider(_ slider: RangeSeekSlider, didChange minValue: CGFloat, maxValue: CGFloat) {
// Handle value changes
}
“`
For a complete list of delegate methods, please refer to the documentation.
## Contributing
We encourage you to contribute to the RangeSeekSlider project by submitting bug reports, feature requests, or pull requests. Please refer to the [contribution guidelines](https://github.com/cocoapods/cocoapods.org/blob/master/docs/Contributing.md) for more information.
## License
RangeSeekSlider is available under the MIT license. See the [LICENSE](https://github.com/WorldDownTown/RangeSeekSlider/blob/master/LICENSE) file for more details.
For any further assistance or detailed example, please refer to the official GitHub repository: [RangeSeekSlider](https://github.com/WorldDownTown/RangeSeekSlider)