Skip to content

iOS controller for selecting items with swipe gestures

License

Notifications You must be signed in to change notification settings

Galarius/SlidingSelector

Repository files navigation

SlidingSelector

GitHub license platform language

SlidingSelector is a controller for selecting an element from a small array with swipe gestures.

Inspired by Figure app

Example

Appetize Live Demo Gif
Tap to play on Appetize Gif Example

Installation

Existing iOS Project

  1. Using Xcode 11 go to File > Swift Packages > Add Package Dependency
  2. Paste the project URL: https://github.com/Galarius/SlidingSelector.git
  3. Import SlidingSelector

Swift Package Manager

// swift-tools-version:5.3

import PackageDescription

let package = Package(
  name: "YourProject",
  platforms: [
       .iOS(.v9),
  ],
  dependencies: [
    .package(url: "https://github.com/Galarius/SlidingSelector.git")
  ],
  targets: [
    .target(name: "YourProject", dependencies: ["SlidingSelector"])
  ]
)

And then import wherever needed: import SlidingSelector

Usage

The example project is located under Example folder.

License

  1. SlidingSelector is released under the MIT license. See LICENSE for details.

  2. Images of planets surfaces are provided on the terms of personal, non commercial use by bytecodeminer from alphacoders.com.

  3. Icons are provided on the terms of Creative Commons (Attribution 3.0 Unported) license from iconfinder.com: