瀏覽代碼

fix flashing of waveformview during the initialization

cyberta 5 年之前
父節點
當前提交
b180ccb302
共有 1 個文件被更改,包括 2 次插入1 次删除
  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