Procházet zdrojové kódy

Merge pull request #1242 from EJM0/feat/animated-bolus-progess

adds a subtle animation to the bolus progress bar
Deniz Cengiz před 1 týdnem
rodič
revize
033d55bc66
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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) {
                             RoundedRectangle(cornerRadius: 15)
                                 .frame(width: geo.size.width * CGFloat(progress))
+                                .animation(.easeInOut(duration: 0.25), value: progress)
                         }
                 )
         }