NHRangeSliderView
open class NHRangeSliderView: UIView
Range slider with labels for upper and lower thumbs, title label and configurable step value (optional)
-
Undocumented
Declaration
Swift
open class NHRangeSliderView: UIView -
Range slider
Declaration
Swift
open var rangeSlider : NHRangeSlider? = nil -
Display title
Declaration
Swift
open var titleLabel : UILabel? = nil -
Undocumented
Declaration
Swift
open class NHRangeSliderView: UIView -
upper value label for displaying selected upper value
Declaration
Swift
open var upperLabel : UILabel? = nil -
display format for lower value. Default to %.0f to display value as Int
Declaration
Swift
open var lowerDisplayStringFormat: String = "%.0f" -
display format for upper value. Default to %.0f to display value as Int
Declaration
Swift
open var upperDisplayStringFormat: String = "%.0f" -
vertical spacing
Declaration
Swift
open var spacing: CGFloat = 4.0 -
position of thumb labels. Set to STICKY to stick to left and right positions. Set to FOLLOW to follow left and right thumbs
Declaration
Swift
open var thumbLabelStyle: NHSliderLabelStyle = .STICKY -
minimum value
Declaration
Swift
@IBInspectable open var minimumValue: Double = 0.0 -
max value
Declaration
Swift
@IBInspectable open var maximumValue: Double = 100.0 -
value for lower thumb
Declaration
Swift
@IBInspectable open var lowerValue: Double = 0.0 -
value for upper thumb
Declaration
Swift
@IBInspectable open var upperValue: Double = 100.0 -
stepValue. If set, will snap to discrete step points along the slider . Default to nil
Declaration
Swift
@IBInspectable open var stepValue: Double? = nil -
minimum distance between the upper and lower thumbs.
Declaration
Swift
open var gapBetweenThumbs: Double = 2.0 -
tint color for track between 2 thumbs
Declaration
Swift
@IBInspectable open var trackTintColor: UIColor = UIColor(white: 0.9, alpha: 1.0) -
track highlight tint color
Declaration
Swift
@IBInspectable open var trackHighlightTintColor: UIColor = UIColor(red: 0.0, green: 0.45, blue: 0.94, alpha: 1.0) -
thumb tint color
Declaration
Swift
@IBInspectable open var thumbTintColor: UIColor = UIColor.white -
thumb border color
Declaration
Swift
@IBInspectable open var thumbBorderColor: UIColor = UIColor.gray -
thumb border width
Declaration
Swift
@IBInspectable open var thumbBorderWidth: CGFloat = 0.5 -
set 0.0 for square thumbs to 1.0 for circle thumbs
Declaration
Swift
@IBInspectable open var curvaceousness: CGFloat = 1.0 -
thumb width and height
Declaration
Swift
@IBInspectable open var thumbSize: CGFloat = 32.0
-
Undocumented
Declaration
Swift
open class NHRangeSliderView: UIView -
Undocumented
Declaration
Swift
open class NHRangeSliderView: UIView -
setup
Declaration
Swift
open func setup()
-
Range slider change events. Upper / lower labels will be updated accordingly. Selected value for filterItem will also be updated
Parameter
Parameter rangeSlider: the changed rangeSliderDeclaration
Swift
open func rangeSliderValueChanged(_ rangeSlider: NHRangeSlider)Parameters
rangeSliderthe changed rangeSlider
-
Undocumented
Declaration
Swift
open class NHRangeSliderView: UIView -
layout subviews
Declaration
Swift
override open func layoutSubviews() -
Undocumented
Declaration
Swift
open class NHRangeSliderView: UIView
View on GitHub
NHRangeSliderView Class Reference