Skip to content

A UIView subclass that reproduces the waveform effect seen in Siri on iOS 7+. It is a Swift adaptation of the amazing SCSiriWaveformView by Stefan Ceriu.

License

Notifications You must be signed in to change notification settings

daniele-pizziconi/SwiftSiriWaveformView

 
 

Repository files navigation

SwiftSiriWaveformView (Swift 2.0 / Xcode 7 compatible)

[![CI Status](http://img.shields.io/travis/Alankar Misra/SwiftSiriWaveformView.svg?style=flat)](https://travis-ci.org/Alankar Misra/SwiftSiriWaveformView) Version License Platform

Description

SwiftSiriWaveformView is a UIView subclass that reproduces the waveform effect seen in Siri on iOS 7 and iOS 8.

It is a Swift adaptation of the amazing SCSiriWaveformView by Stefan Ceriu.

Sample

Usage

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

To use within your project, simply assign the SCSiriWaveformView class to a UIView, optionally play with the properties such as wave color, frequency, number of waves, etc, all which are settable from within the Interface Builder itself and you're all set! You can then use the amplitude property to interact with the waveform. For example if you had:

@IBOutlet weak var audioView: SwiftSiriWaveformView!

you could use

audioView.amplitude = 1.0

Installation (CocoaPods)

SwiftSiriWaveformView is available through CocoaPods. To install it, simply add the following line to your Podfile:

use_frameworks!
pod "SwiftSiriWaveformView"

Installation (Manual)

Copy Pod/Classes/SwiftSiriWaveFormView.swift into your project.

Author

Alankar Misra, [email protected]

License

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

About

A UIView subclass that reproduces the waveform effect seen in Siri on iOS 7+. It is a Swift adaptation of the amazing SCSiriWaveformView by Stefan Ceriu.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 64.7%
  • Ruby 26.0%
  • Objective-C 9.3%