Latest 0.1.1
Homepage https://github.com/emannuelOC/OCWaveView
License MIT
Platforms ios 8.0
Authors

🌊 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

Manually

You can simply copy OCWaveView.swift into your project.

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.

Latest podspec

{
    "name": "OCWaveView",
    "version": "0.1.1",
    "summary": "ud83cudf0a A UIView subclass to present visual feedback for audio input",
    "description": "OCWaveView is a UIView subclass that can present visual feedback for audio input.",
    "homepage": "https://github.com/emannuelOC/OCWaveView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Emannuel Carvalho": "[email protected]"
    },
    "social_media_url": "http://twitter.com/emannuel_oc",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/emannuelOC/OCWaveView.git",
        "tag": "0.1.1"
    },
    "source_files": [
        "OCWaveView",
        "Classes/**/*.{h,m,swift}"
    ],
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3"
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This