Skip to content

Commit

Permalink
fix: double loading indicator for Explore all courses link
Browse files Browse the repository at this point in the history
[iOS] Fix double loading indicator for Explore all courses link #435
  • Loading branch information
forgotvas committed Jun 12, 2024
1 parent 3ab245b commit bfcac8d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Core/Core/View/Base/ProgressBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,18 @@ public struct ProgressBar: View {
Circle()
.stroke(lineWidth: lineWidth)
.foregroundColor(Theme.Colors.accentColor.opacity(0.3))
.frame(width: size, height: size)

Circle()
.trim(from: 0.0, to: 0.7)
.stroke(gradient, style: StrokeStyle(lineWidth: lineWidth, lineCap: .round))
.frame(width: size, height: size)
.rotationEffect(Angle.degrees(isAnimating ? 360 : 0), anchor: .center)
.animation(animation, value: isAnimating)
}
.frame(width: size, height: size)
.rotationEffect(Angle.degrees(isAnimating ? 360 : 0), anchor: .center)
.animation(animation, value: isAnimating)
.onAppear {
isAnimating = true
DispatchQueue.main.async {
isAnimating = true
}
}
}
}
Expand Down

0 comments on commit bfcac8d

Please sign in to comment.