Swiftpack.co - Package - yokoe/PlaybackSlider

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

yokoe/PlaybackSlider

A custom NSSlider with cached segments indicator.

PlaybackSlider

Version License Platform

Usage

var segments = [CachedSegment](https://raw.github.com/yokoe/PlaybackSlider/master/)
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.

Github

link
Stars: 3
Last commit: 39 weeks ago