From cd5e24f5270a77c40cf6e765bcc4db7801987a07 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Wed, 21 Jun 2023 12:53:17 +0300 Subject: [PATCH] Prevent determinate progress views from showing up as indeterminate ones for a split second --- .../Sources/Other/UserIndicator/UserIndicatorModalView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElementX/Sources/Other/UserIndicator/UserIndicatorModalView.swift b/ElementX/Sources/Other/UserIndicator/UserIndicatorModalView.swift index 138c293a0..fad43470e 100644 --- a/ElementX/Sources/Other/UserIndicator/UserIndicatorModalView.swift +++ b/ElementX/Sources/Other/UserIndicator/UserIndicatorModalView.swift @@ -19,7 +19,7 @@ import SwiftUI struct UserIndicatorModalView: View { let indicator: UserIndicator - @State private var progressFraction: Double? + @State private var progressFraction = 0.0 var body: some View { ZStack {