diff --git a/AnimateTextExample/Shared/TapAnimateTextView.swift b/AnimateTextExample/Shared/TapAnimateTextView.swift index d6a4baf..e97288a 100644 --- a/AnimateTextExample/Shared/TapAnimateTextView.swift +++ b/AnimateTextExample/Shared/TapAnimateTextView.swift @@ -36,13 +36,10 @@ struct TapAnimateTextView: View { .opacity(0.3) .disabled(true) } - .transition(.opacity) - .animation(.easeInOut(duration: 0.24), value: text) } } .padding() .padding(.bottom, 50) - .animation(.easeInOut, value: text) Spacer() } } diff --git a/Sources/AnimateText/AnimateText.swift b/Sources/AnimateText/AnimateText.swift index 61de63c..db9676d 100644 --- a/Sources/AnimateText/AnimateText.swift +++ b/Sources/AnimateText/AnimateText.swift @@ -91,12 +91,12 @@ public struct AnimateText: View { } } .onChange(of: text) { _ in - self.isChanged = true withAnimation { value = 0 getText(text) toggle.toggle() } + self.isChanged = true DispatchQueue.main.async { value = 1 }