Latest 2.0.1
Homepage https://github.com/AlexGivens/EqualizerIndicatorView
License MIT
Platforms ios 9.0, tvos 9.0
Frameworks UIKit
Authors


EqualizerIndicatorView

Version
License
Platform
Twitter

Introduction

EqualizerIndicatorView is Swift UI component to indicate the current status of audio. The design is inspired by Apple’s Music app.

Demo

An example project is included to demonstrate how to use an indicator with storyboards. To run the project, run pod install from the Example directory first.

Installation

Install the library through CocoaPods. Add the following line to your Podfile, then run pod install.

pod 'EqualizerIndicatorView', '~> 2.0'

Be sure to import the library when needed.

import EqualizerIndicatorView

Usage

EqualizerIndicatorView can reflect the play, pause, and stop states of audio. Initialize and animate an indicator as follows.

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

EqualizerIndicatorView may be used in storyboards, and fully supports AutoLayout. Add a plain UIView first, then set the view’s Class and Module to EqualizerIndicatorView.

Migration

Version 2.0.0

This version requires Xcode 9.0 and Swift 4.

Version 1.0.0

EqualizerIndicatorView supports iOS 9.0+ and tvOS 9.0+. Also supports Swift 3 and Xcode 8.0.

Credits

Created by Alex Givens in California.

License

The MIT License (MIT)

Copyright (c) 2017 Alex Givens http://alexgivens.com

Latest podspec

{
    "name": "EqualizerIndicatorView",
    "version": "2.0.1",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "Visually indicate the play, pause, or stop state of audio.",
    "homepage": "https://github.com/AlexGivens/EqualizerIndicatorView",
    "social_media_url": "https://twitter.com/AlexGivens_",
    "authors": {
        "Alexander Givens": "[email protected]"
    },
    "source": {
        "git": "https://github.com/AlexGivens/EqualizerIndicatorView.git",
        "tag": "2.0.1"
    },
    "platforms": {
        "ios": "9.0",
        "tvos": "9.0"
    },
    "source_files": "Source/EqualizerIndicatorView.swift",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This