Hide compose progress bar while there is no progress

On iOS 15, the progress bar displays a little bit of progress even at 0
This commit is contained in:
Shadowfacts 2021-06-08 14:54:42 -04:00
parent d667f6362c
commit 1a5b958b1a
1 changed files with 4 additions and 2 deletions

View File

@ -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
}