From 65c6c50e36b53719756c88988b7268482ce02ec0 Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Thu, 21 Sep 2023 17:25:57 +1000 Subject: [PATCH] WIP: loading indicator --- Session/Shared/LoadingIndicatorView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Session/Shared/LoadingIndicatorView.swift b/Session/Shared/LoadingIndicatorView.swift index 40558cc1f..d67aa40d5 100644 --- a/Session/Shared/LoadingIndicatorView.swift +++ b/Session/Shared/LoadingIndicatorView.swift @@ -4,11 +4,12 @@ import SwiftUI public struct ActivityIndicator: View { @State private var isAnimating: Bool = false + @State private var trim: Double = 0.9 public var body: some View { GeometryReader { (geometry: GeometryProxy) in Circle() - .trim(from: 0, to: 0.9) + .trim(from: 0, to: trim) .stroke( themeColor: .borderSeparator, style: StrokeStyle( @@ -20,7 +21,6 @@ public struct ActivityIndicator: View { width: geometry.size.width, height: geometry.size.height ) - . .rotationEffect(!self.isAnimating ? .degrees(0) : .degrees(360)) .animation(Animation .timingCurve(0.5, 1, 0.25, 1, duration: 1.5)