Swiftpack.co - edgar-zigis/iLabeledSeekSlider as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by edgar-zigis.
edgar-zigis/iLabeledSeekSlider 1.1.0
Custom & highly configurable seek slider with sliding intervals, disabled state and every possible setting to tackle!
⭐️ 8
🕓 2 weeks ago
iOS
.package(url: "https://github.com/edgar-zigis/iLabeledSeekSlider.git", from: "1.1.0")

iLabeledSeekSlider

Custom & highly configurable seek slider with sliding intervals, disabled state and every possible setting to tackle!

Minimum iOS version 9.0

alt text

Carthage

github "edgar-zigis/iLabeledSeekSlider" ~> 1.1.0

Cocoapods

pod 'iLabeledSeekSlider', '~> 1.0.2'

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/edgar-zigis/iLabeledSeekSlider.git", .upToNextMajor(from: "1.1.0"))
]

Usage

let slider = iLabeledSeekSlider()
slider.title = "Amount"
slider.unit = "€"
slider.unitPosition = .back
slider.limitValueIndicator = "Max"
slider.minValue = 100
slider.maxValue = 1000
slider.defaultValue = 550
slider.limitValue = 850
slider.slidingInterval = 50
slider.valuesToSkip = [300, 350]
slider.trackHeight = 4
slider.activeTrackColor = UIColor(red: 1.0, green: 0.14, blue: 0.0, alpha: 1.0)
slider.inactiveTrackColor = UIColor(red: 0.91, green: 0.91, blue: 0.91, alpha: 1.0)
slider.thumbSliderRadius = 12
slider.thumbSliderBackgroundColor = UIColor(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0)
slider.rangeValueTextFont = UIFont.systemFont(ofSize: 12)
slider.rangeValueTextColor = UIColor(red: 0.62, green: 0.65, blue: 0.68, alpha: 1.0)
slider.titleTextFont = UIFont.systemFont(ofSize: 12)
slider.titleTextColor = UIColor(red: 0.62, green: 0.65, blue: 0.68, alpha: 1.0)
slider.bubbleStrokeWidth = 2
slider.bubbleCornerRadius = 5
slider.bubbleValueTextFont = UIFont.boldSystemFont(ofSize: 12)
slider.bubbleOutlineColor = UIColor(red: 0.91, green: 0.91, blue: 0.91, alpha: 1.0)
slider.bubbleValueTextColor = UIColor(red: 0.10, green: 0.10, blue: 0.10, alpha: 1.0)
slider.vibrateOnLimitReached = true
slider.allowLimitValueBypass = false
slider.isDisabled = false
slider.delegationMode = .immediate

Remarks

It can be used both programmatically and with storyboards. Samples are available at Tests/iLabeledSeekSliderTests

GitHub

link
Stars: 8
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1.1.0
2 weeks ago

New features

  • Added support for immediate and singular value delegation modes. If singular mode is chosen, values will be emitted only after user finishes gesture interaction. Default is immediate.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics