Latest 0.1.1
Homepage https://github.com/prnncl/NPWaveformView
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

Version
License
Platform

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

![](http://s13.postimg.org/dil5puf0n/Untitled_1.jpg =300×300)

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

CocoaPods

Add the NPWaveformView pod into your project and run pod install

pod 'NPWaveformView'

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.

Latest podspec

{
    "name": "NPWaveformView",
    "version": "0.1.1",
    "summary": "UIView subclass that reproduces the waveform effect seen in Siri.",
    "description": "NPWaveformView is an UIView fully customizable subclass that reproduces the waveform effect seen in Siri.",
    "homepage": "https://github.com/prnncl/NPWaveformView",
    "screenshots": "http://s13.postimg.org/dil5puf0n/Untitled_1.jpg",
    "license": "MIT",
    "authors": {
        "Nicola Perantoni": "[email protected]"
    },
    "source": {
        "git": "https://github.com/prnncl/NPWaveformView.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://twitter.com/prnncl",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "NPWaveformView": [
            "Pod/Assets/*.png"
        ]
    },
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This