You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.
I found a solution for the autolayout fix needed in RecorderViewController.
First change the setupAudioView() function in RecorderViewController.swift
fileprivate func setupAudioView() { view.addSubview(audioView) audioView.translatesAutoresizingMaskIntoConstraints = false audioView.leadingAnchor.constraint(equalTo: view.layoutMarginsGuide.leadingAnchor).isActive = true audioView.trailingAnchor.constraint(equalTo: view.layoutMarginsGuide.trailingAnchor).isActive = true audioView.centerXAnchor.constraint(equalTo: view.layoutMarginsGuide.centerXAnchor).isActive = true audioView.heightAnchor.constraint(equalToConstant: 140).isActive = true audioView.alpha = 0 audioView.isHidden = true }
then in AudioVisualizerView.swift, one more thing should be done, change the waveforms array like this;
var waveforms: [Int] = Array(repeating: 0, count: Int(UIScreen.main.bounds.width/3))
The text was updated successfully, but these errors were encountered: