Skip to content

Commit

Permalink
fix: Fix LoadingView Freezing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercen-Lee committed Mar 31, 2024
1 parent 167bc67 commit 191fe34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/DDS/Component/LoadingView/LoadingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public struct DodamLoadingView: View {
}
}
.onChange(of: loadingState) { newValue in
Task {
Task.detached {
try? await Task.sleep(nanoseconds: 300_000_000)
withAnimation(.spring(duration: 0.5)) {
loadingState = (newValue + 1) % 3
Expand Down

0 comments on commit 191fe34

Please sign in to comment.