SliderConfig

public class SliderConfig: ElementConfig

Holds slider configuration values.

  • Height of the slider track.

    Declaration

    Swift

    public let trackHeight: CGFloat
  • Corner radius of the slider track.

    Declaration

    Swift

    public let trackCornerRadius: CGFloat
  • Color of the track to the left of slider thumb.

    Declaration

    Swift

    public let minimumTrackTintColor: UIColor
  • Color of the parts of the track which fall to the right side of slider thumb and represent available value (e.g. buffered duration of a video).

    Declaration

    Swift

    public let availableTrackTintColor: UIColor
  • Color of the track to the right of slider thumb.

    Declaration

    Swift

    public let maximumTrackTintColor: UIColor
  • Color of the slider thumb.

    Declaration

    Swift

    public let thumbTintColor: UIColor
  • Width of the slider thumb.

    Declaration

    Swift

    public let thumbWidth: CGFloat
  • Height of the slider thumb.

    Declaration

    Swift

    public let thumbHeight: CGFloat
  • Corner radius of the slider thumb.

    Declaration

    Swift

    public let thumbCornerRadius: CGFloat
  • Border width of the slider thumb.

    Declaration

    Swift

    public let thumbBorderWidth: CGFloat
  • Border color of the slider thumb.

    Declaration

    Swift

    public let thumbBorderColor: CGColor
  • Initializes using default values.

    Declaration

    Swift

    public convenience init()
  • Initializes using a dictionary.

    • Key for trackHeight is "trackHeight" and its value should be a number.
    • Key for trackCornerRadius is "trackCornerRadius" and its value should be a number.
    • Key for minimumTrackTintColor is "minimumTrackTintColor" and its value should be a color hex string.
    • Key for availableTrackTintColor is "availableTrackTintColor" and its value should be a color hex string.
    • Key for maximumTrackTintColor is "maximumTrackTintColor" and its value should be a color hex string.
    • Key for thumbTintColor is "thumbTintColor" and its value should be a color hex string.
    • Key for thumbWidth is "thumbWidth" and its value should be a number.
    • Key for thumbHeight is "thumbHeight" and its value should be a number.
    • Key for thumbCornerRadius is "thumbCornerRadius" and its value should be a number.
    • Key for thumbBorderWidth is "thumbBorderWidth" and its value should be a number.
    • Key for thumbBorderColor is "thumbBorderColor" and its value should be a color hex string.

    • parameters:

      • dictionary: Toggle button configuration dictionary.

    Declaration

    Swift

    public override init(dictionary: [String: AnyObject])

    Parameters

    dictionary

    Toggle button configuration dictionary.