Latest 1.0
License MIT
Platforms ios 9.0


What’s feature?

  • draw waveform of mp3 file on screen
  • draw line of playing position
  • zoom-in and zoom-out waveform while playing
  • use swift 3 version

    How to use?

  • Install library : add pod ‘waveFormLibrary’, ‘~> 1.0’ similar to the following to your Podfile:

    target 'MyApp' do
    pod 'waveFormLibrary', '~> 1.0'

    Then run a pod install inside your terminal, or from

  • Use storyboard

    -The first : add a UIView(which you want to hold waveform view) to your view, in identity inspector change custom class to ControllerWaveForm class.


-Now you can change waveform line color and current play position line color in attribute inspector


-Connect your waveForm view to viewController

   @IBOutlet weak var controller: ControllerWaveForm!

set mp3 url to your waveForm

   controller.setMp3Url(mp3Url: url)

-In this example I create mp3 url by copy file 02.mp3 to my project and then add below code

   let mp3file = Bundle.main.path(forResource: "02", ofType: "mp3")
   let url = URL(fileURLWithPath: mp3file!)

Latest podspec

    "name": "waveFormLibrary",
    "version": "1.0",
    "summary": "draw waveform of mp3 file",
    "description": "draw waveform and display current position.",
    "homepage": "",
    "license": "MIT",
    "authors": "duongsonthong",
    "platforms": {
        "ios": "9.0"
    "source": {
        "git": "",
        "tag": "1.0"
    "source_files": "waveFormLibrary",
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This