Browse Source

fix flashing of waveformview during the initialization

cyberta 5 năm trước cách đây
mục cha
commit
b180ccb302
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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