Showing 3 changed files with 3 additions and 4 deletions
+1 -1
USB Meter/Views/BorderView.swift
@@ -20,7 +20,7 @@ struct BorderView: View {
20 20
 
21 21
         RoundedRectangle(cornerRadius: 10)
22 22
             .stroke(lineWidth: 3.0).foregroundColor(show ? fillColor : Color.clear)
23
-            .animation(.linear(duration: 0.1))
23
+            .animation(.linear(duration: 0.1), value: show)
24 24
         }
25 25
     }
26 26
 }
+1 -2
USB Meter/Views/Meter/ChevronView.swift
@@ -19,9 +19,8 @@ struct ChevronView: View {
19 19
             Image(systemName: "chevron.right.circle")
20 20
                 .imageScale(.large)
21 21
                 .rotationEffect(.degrees(rotate ? 270 : 90))
22
-                .animation(.easeInOut)
22
+                .animation(.easeInOut, value: rotate)
23 23
                 .padding(.vertical)
24 24
         }
25 25
     }
26 26
 }
27
-
+1 -1
USB Meter/Views/Meter/Measurements/MeasurementPointView.swift
@@ -29,7 +29,7 @@ struct MeasurementPointView: View {
29 29
                     Image(systemName: "chevron.right.circle")
30 30
                         .imageScale(.large)
31 31
                         .rotationEffect(.degrees(showDetail ? 90 : 0))
32
-                        .animation(.easeInOut(duration: 0.25))
32
+                        .animation(.easeInOut(duration: 0.25), value: showDetail)
33 33
                 }
34 34
             }
35 35
             if showDetail {