We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3ac660 commit c55847eCopy full SHA for c55847e
AnimateTextExample/Shared/TapAnimateTextView.swift
@@ -36,13 +36,10 @@ struct TapAnimateTextView<E: ATTextAnimateEffect>: View {
36
.opacity(0.3)
37
.disabled(true)
38
}
39
- .transition(.opacity)
40
- .animation(.easeInOut(duration: 0.24), value: text)
41
42
43
.padding()
44
.padding(.bottom, 50)
45
- .animation(.easeInOut, value: text)
46
Spacer()
47
48
Sources/AnimateText/AnimateText.swift
@@ -91,12 +91,12 @@ public struct AnimateText<E: ATTextAnimateEffect>: View {
91
92
93
.onChange(of: text) { _ in
94
- self.isChanged = true
95
withAnimation {
96
value = 0
97
getText(text)
98
toggle.toggle()
99
+ self.isChanged = true
100
DispatchQueue.main.async {
101
value = 1
102
0 commit comments