From 1a5b958b1afb181b864c4562507b069c3199b196 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 8 Jun 2021 14:54:42 -0400 Subject: [PATCH] Hide compose progress bar while there is no progress On iOS 15, the progress bar displays a little bit of progress even at 0 --- Tusker/Screens/Compose/ComposeView.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tusker/Screens/Compose/ComposeView.swift b/Tusker/Screens/Compose/ComposeView.swift index 086e98cd..ab5d8a90 100644 --- a/Tusker/Screens/Compose/ComposeView.swift +++ b/Tusker/Screens/Compose/ComposeView.swift @@ -58,8 +58,10 @@ struct ComposeView: View { } } - // can't use SwiftUI.ProgressView because there's no UIProgressView.Style.bar equivalent, see FB8587149 - WrappedProgressView(value: postProgress, total: postTotalProgress) + if postProgress > 0 { + // can't use SwiftUI.ProgressView because there's no UIProgressView.Style.bar equivalent, see FB8587149 + WrappedProgressView(value: postProgress, total: postTotalProgress) + } autocompleteSuggestions }