Latest 2.4.0
Homepage https://github.com/alankarmisra/SwiftSiriWaveformView
License MIT
Platforms ios 8.3, requires ARC
Authors

SwiftSiriWaveformView (Swift 4.0 / Xcode 9 compatible)

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

Version 2.4 | Swift 4.0 / XCode 9

  • Upgraded the Pod to Swift 4.0 syntax. The interface remains unchanged.

Version 2.1 | Swift 3.0 / XCode 8

  • Added initializers to programmatically create the view.

Version 2.0 | Swift 3.0 / XCode 8

  • Upgraded the Pod to Swift 3.0 syntax. The interface remains unchanged.

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 lines to your Podfile:

For Cocoapods >= 1.0

use_frameworks!
target "YOUR_PROJECT_NAME" do
    pod "SwiftSiriWaveformView"
end

For Cocoapods < 1.0

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.

Latest podspec

{
    "name": "SwiftSiriWaveformView",
    "version": "2.4.0",
    "summary": "UIView subclass that reproduces the waveform effect seen in Siri on iOS 7 / iOS 8",
    "description": "SwiftSiriWaveformView is a UIView subclass that reproduces the waveform effect seen in Siri on iOS 7 / iOS 8. Version 2.0 is compatible with Swift 3.0+ and XCode 8.0+nnIt is an interface-incompatible Swift adaptation of the amazing [SCSiriWaveformView](https://github.com/stefanceriu/SCSiriWaveformView) by [Stefan Ceriu](https://github.com/stefanceriu).",
    "homepage": "https://github.com/alankarmisra/SwiftSiriWaveformView",
    "license": "MIT",
    "authors": {
        "Alankar Misra": "[email protected]"
    },
    "source": {
        "git": "https://github.com/alankarmisra/SwiftSiriWaveformView.git",
        "tag": "2.4.0"
    },
    "social_media_url": "https://twitter.com/alankarmisra_",
    "platforms": {
        "ios": "8.3"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This