Browse Source

fix flashing of waveformview during the initialization

cyberta 5 years ago
parent
commit
b180ccb302
1 changed files with 2 additions and 1 deletions
  1. 2 1
      deltachat-ios/Controller/AudioRecorderController.swift

+ 2 - 1
deltachat-ios/Controller/AudioRecorderController.swift

@@ -31,7 +31,8 @@ class AudioRecorderController: UIViewController, AVAudioRecorderDelegate {
 
     lazy var waveFormView: SCSiriWaveformView = {
         let view = SCSiriWaveformView()
-        view.alpha = 1.0
+        view.alpha = 0.0
+        view.waveColor = .clear
         view.backgroundColor = .clear
         view.translatesAutoresizingMaskIntoConstraints = false
         view.primaryWaveLineWidth = 3.0