OCWaveView 0.2.1

OCWaveView 0.2.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2020
SPMSupports SPM

Maintained by Emannuel Carvalho.



OCWaveView

🌊 A UIView subclass to present visual feedback for audio input

There are currently three different types of waveViews you can choose from: WaveView, SimpleWaveView and BarsWaveView.

Requirements

  • iOS 8.0+
  • Xcode 8.0+

Usage

Code

Create one of the Wave View (Wave, SimpleWave of Bars) and add it as a subview anywhere, customize it changing the colors and update it setting its value property based on the audio input.

Storyboard

Drag a view into your scene and set its Class to be WaveView and the Module to OCWaveView. Then you can inspect the colors for each wave and the initial value.

Create an outlet and change its value property according to the audio input to update the waves.

Instalation

Swift Package Manager

Add OCWaveView to the dependencies value of your Package.swift.

dependencies: [
.package(url: "https://github.com/emannuelOC/OCWaveView.git", .upToNextMajor(from: "0.2.1"))
]

Cocoapods

Cocoapods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

In order to integrate OCWaveView into your project, add it to your Podfile:

pod 'OCWaveView'

Then, run the following command:

$ pod install

Acknowledgements

A big thanks to:

  • Kaique D'amato for helping me distribute OCWaveView via Cocoapods and for yelling at me that "finished is better than perfect"
  • Rafael Feroli for helping me out with how the waves should look

License

OCWaveView is released under the MIT license. See LICENSE for details.