Browse Source

adds animation to the bolus progress bar

ejm0 2 weeks ago
parent
commit
9a1e15bf80
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Trio/Sources/Views/BolusProgressBar.swift

+ 1 - 0
Trio/Sources/Views/BolusProgressBar.swift

@@ -19,6 +19,7 @@ struct BolusProgressBar: View {
                         .mask(alignment: .leading) {
                         .mask(alignment: .leading) {
                             RoundedRectangle(cornerRadius: 15)
                             RoundedRectangle(cornerRadius: 15)
                                 .frame(width: geo.size.width * CGFloat(progress))
                                 .frame(width: geo.size.width * CGFloat(progress))
+                                .animation(.easeInOut(duration: 0.25), value: progress)
                         }
                         }
                 )
                 )
         }
         }