NPWaveformView 0.1.1

NPWaveformView 0.1.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2015
SPMSupports SPM

Maintained by Nicola Perantoni.




NPWaveformView

NPWaveformView is an UIView fully customizable subclass that reproduces the waveform effect seen in Siri.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 8+
  • Xcode 7.0+

Installation

Manual Install

Download NPWaveformView and import NPWaveformView.swift inside your xcode project.

Sample App

To start using NPWaveformView you can build the provided example project

  1. Open Example/NPWaveformView.xcodeproj in Xcode.
  2. Build and run.

Usage

Import NPWaveformView in your Swift code:

import NPWaveformView

Interface Builder

Add an UIView with interface builder and set NPWaveformView as UIView custom class.

Link it with the outlet property declared in your code.

@IBOutlet weak var waveformView: NPWaveformView!

Customization

These are the customizable properties:

  • UIColor waveColor
  • Int numberOfWaves
  • CGFLoat primaryWaveLineWidth
  • CGFloat secondaryWaveLineWidth
  • CGFloat idleAmplitude
  • CGFloat frequency
  • CGFloat density
  • CGFloat phaseShift
  • CGFloat amplitude

Author

Nicola Perantoni, [email protected]

License

NPWaveformView is available under the MIT license. See the LICENSE file for more info.