Skip to content

Commit 06e613b

Browse files
change animation style in progress bar to linear
1 parent 7ae6885 commit 06e613b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Sources/ComponentsKit/Components/ProgressBar/SUProgressBar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public struct SUProgressBar: View {
7575
}
7676
}
7777
.animation(
78-
Animation.easeInOut(duration: self.model.animationDuration),
78+
Animation.linear(duration: self.model.animationDuration),
7979
value: self.progress
8080
)
8181
.frame(height: self.model.backgroundHeight)

Sources/ComponentsKit/Components/ProgressBar/UKProgressBar.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,9 @@ open class UKProgressBar: UIView, UKComponent {
160160

161161
UIView.animate(
162162
withDuration: self.model.animationDuration,
163-
delay: 0,
164-
options: .curveEaseInOut,
165163
animations: {
166164
self.layoutIfNeeded()
167-
},
168-
completion: nil
165+
}
169166
)
170167
}
171168

0 commit comments

Comments
 (0)