Преглед изворни кода

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

adds a subtle animation to the bolus progress bar
Deniz Cengiz пре 1 недеља
родитељ
комит
033d55bc66
1 измењених фајлова са 1 додато и 0 уклоњено
  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)
                         }
                 )
         }