Generate waveform view from audio data.
Code
let waveformView = VIWaveformView()
waveformView.minWidth = UIScreen.main.bounds.width
// Configure wave node view
waveformView.waveformNodeViewProvider = BasicWaveFormNodeProvider(generator: VIWaveformNodeView())
// Load data
let url = Bundle.main.url(forResource: "Moon River", withExtension: "mp3")!
let asset = AVAsset.init(url: url)
_ = waveformView.loadVoice(from: asset, completion: { (asset) in
// Load complete
})