Contents

ramiz69/slider

- [Installation](#installation)

Requirements

  • iOS 14.0+
  • Xcode 16+
  • Swift 5+

Preview

<details> <summary>Preview</summary>

<img src="Screenshots/leftToRightDefault.png" width="400"/> <img src="Screenshots/rightToLeftDefault.png" width="400"/> <img src="Screenshots/leftToRightCustom.png" width="400"/> <img src="Screenshots/preference.png" width="400"/> </details>

Installation

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

Once you have your Swift package set up, adding Slider as a dependency is as easy as adding it to the dependencies value of your Package.swift or the Package list in Xcode.

dependencies: [
    .package(url: "https://github.com/Ramiz69/Slider.git", .upToNextMajor(from: "0.2.1"))
]

Normally you'll want to depend on the Slider target:

.product(name: "Slider", package: "Slider")

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Slider into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'RKSlider'

Manually

copy Slider.swift to your project

Usage

code
  • init Slider with frame or use Auto Layout
  • add a view to your superview

Author

ramiz69, ramiz161@icloud.com

License

Slider is available under the MIT license. See LICENSE for details.

Package Metadata

Repository: ramiz69/slider

Default branch: master

README: README.md