Skip to content

A custom NSSlider with cached segments indicator.

License

Notifications You must be signed in to change notification settings

yokoe/PlaybackSlider

Repository files navigation

PlaybackSlider

Version License Platform

Usage

var segments = [CachedSegment]()
segments.append(CachedSegment(start: 0, end: 25))
segments.append(CachedSegment(start: 50, end: 75))
slider.cachedSegments = segments

// To change colors
slider.contentBackgroundColor = NSColor.blue
slider.knobColor = NSColor.red
slider.knobBorderColor = NSColor.white
slider.cachedSegmentColor = NSColor.yellow

Cached segments will be highlighted on slider bar.

Requirements

  • macOS 10.10+

Installation

PlaybackSlider is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "PlaybackSlider"

Author

Sota Yokoe, info@kreuz45.com

License

PlaybackSlider is available under the MIT license. See the LICENSE file for more info.

About

A custom NSSlider with cached segments indicator.

Resources

License

Stars

Watchers

Forks

Packages