You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you like VerticalSlider, give it a ★ at the top right of this page.
Overview
VerticalSlider is a vertical implementation of the UISlider control. Visual properties of the slider have been exposed through interface builder. The underlying UISlider control can be accessed through VerticalSlider's slider property.
Check out the example project to see it in action!
Requirements
Swift 3
iOS 8 or higher
Installation
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate VerticalSlider into your Xcode project using CocoaPods, specify it in your Podfile:
Create a View for a VerticalSlider. Set the custom class of the View to be VerticalSlider in the Identity Inspector. Interface Builder should update the view to show a VerticalSlider.
Configure VerticalSlider's properties any way you like!
Code Implementation
First:
import VerticalSlider
Next, declare your VerticalSlider at the top of your View Controller and link it in Interface Builder:
@IBOutletvarverticalSlider:VerticalSlider!
In your View Controller's viewDidLoad event, do something like this: