OCWaveView Save

🌊 A UIView subclass to present visual feedback for audio input

Project README

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.

Open Source Agenda is not affiliated with "OCWaveView" Project. README Source: emannuelOC/OCWaveView
Stars
31
Open Issues
0
Last Commit
3 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating