From 55cf87010d53c0f1dc4f7eb20b79078ffee2ee2e Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 17 Dec 2020 09:52:29 -0300 Subject: [PATCH] Ensure audio waveform view adapts to large widths. --- .../ConversationView/Cells/AudioWaveformProgressView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/Cells/AudioWaveformProgressView.swift b/Signal/src/ViewControllers/ConversationView/Cells/AudioWaveformProgressView.swift index e14b63bc0f..4f4da5fa5c 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/AudioWaveformProgressView.swift +++ b/Signal/src/ViewControllers/ConversationView/Cells/AudioWaveformProgressView.swift @@ -105,6 +105,8 @@ class AudioWaveformProgressView: UIView { private func redrawSamples() { AssertIsOnMainThread() + // Show the loading state if sampling of the waveform hasn't finished yet. + // TODO: This will eventually be a lottie animation of a waveform moving up and down func showLoadingAnimation() { playedShapeLayer.path = nil unplayedShapeLayer.path = nil @@ -113,8 +115,6 @@ class AudioWaveformProgressView: UIView { loadingAnimation.play() } - // Show the loading state if sampling of the waveform hasn't finished yet. - // TODO: This will eventually be a lottie animation of a waveform moving up and down guard audioWaveform?.isSamplingComplete == true else { showLoadingAnimation() return