Skip to content

Commit

Permalink
SwiftUI frame animation API deprecation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sitomani committed Feb 13, 2024
1 parent a7416da commit 0391381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 4champ/Scenes/DownloadView/DownloadView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct ProgressBar: View {

Rectangle().frame(width: min(CGFloat(self.value)*geometry.size.width, geometry.size.width), height: geometry.size.height)
.foregroundColor(Color(UIColor.systemBlue))
.animation(.linear)
.animation(value > 0.01 ? .linear : nil, value: value)
}.cornerRadius(2)
}
}
Expand Down

0 comments on commit 0391381

Please sign in to comment.