About NAKPlaybackIndicatorView
NAKPlaybackIndicatorView is a simply designed playback indicator of music for iOS, which has been made to resemble that of the iTunes app and the Music.app of iOS 7 and 8. It is developed primarily by Yusuke Morishita and distributed under the MIT license.
Features
- Clean, straightforward API design
- Customisable view dimensions, colors, and animation duration
- Responsive UI – size dynamically adjusts to fit screen dimensions
- Localized in several languages
- Support for both Objective-C and Swift integration
Installation
To integrate NAKPlaybackIndicatorView into your Xcode project, include it as a CocoaPods dependency in your Podfile, or add it in your Cartfile if you’re using Carthage.
Usage
Regardless of whether you’re using Objective-C or Swift, the NAKPlaybackIndicatorView API is clear and concise. You’ll create a PlaybackIndicatorView instance, configure it to your needs, then start and stop the animations as needed.
Swift Example
let playbackIndicatorView = NAKPlaybackIndicatorView(frame: CGRectMake(0, 0, 15, 15)) playbackIndicatorView.state = .Playing playbackIndicatorView.startAnimating() playbackIndicatorView.stopAnimating()
Objective-C Example
NAKPlaybackIndicatorView* playbackIndicatorView = [[NAKPlaybackIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 15, 15)]; playbackIndicatorView.state = NAKPlaybackIndicatorViewStatePlaying; [playbackIndicatorView startAnimating]; [playbackIndicatorView stopAnimating];
Customization
You can customize the size, color, and the length of the animation for the bars in the NAKPlaybackIndicatorView. These features help application developers to make their application more specific and user-friendly according to their target audience.
Contributing
Contributions are always welcome. Whether you’re fixing bugs, improving the documentation, or proposing a brand new feature, we look forward to seeing your pull requests.