EqualizerIndicatorView 2.0.1

EqualizerIndicatorView 2.0.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Alex Givens.



EqualizerIndicatorView

Installation

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

pod 'EqualizerIndicatorView', '~> 1.0.2'

Usage

EqualizerIndicatorView can reflect the play, pause, and stop states of audio. After installing the Cocoapod in your project, create and animate an indicator like so:

let equalizerIndicatorView = EqualizerIndicatorView(frame: CGRect(x: 0, y: 0, width: 24, height: 18))
equalizerIndicatorView.setState(.play, animated: true)
equalizerIndicatorView.setState(.pause, animated: true)
equalizerIndicatorView.setState(.stop, animated: true)

EqualizerIndicatorView is designable in storyboards as well. To render an indicator in your storyboard, add a plain UIView to the view of your choice, then set the view’s Class and Module to “EqualizerIndicatorView”.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

EqualizerIndicatorView requires iOS 9.0 or tvOS 9.0.

Author

Alex Givens, http://alexgivens.com

License

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