Skip to content

Commit c55847e

Browse files
committed
Bug fix.
1 parent b3ac660 commit c55847e

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

AnimateTextExample/Shared/TapAnimateTextView.swift

-3
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,10 @@ struct TapAnimateTextView<E: ATTextAnimateEffect>: View {
3636
.opacity(0.3)
3737
.disabled(true)
3838
}
39-
.transition(.opacity)
40-
.animation(.easeInOut(duration: 0.24), value: text)
4139
}
4240
}
4341
.padding()
4442
.padding(.bottom, 50)
45-
.animation(.easeInOut, value: text)
4643
Spacer()
4744
}
4845
}

Sources/AnimateText/AnimateText.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ public struct AnimateText<E: ATTextAnimateEffect>: View {
9191
}
9292
}
9393
.onChange(of: text) { _ in
94-
self.isChanged = true
9594
withAnimation {
9695
value = 0
9796
getText(text)
9897
toggle.toggle()
9998
}
99+
self.isChanged = true
100100
DispatchQueue.main.async {
101101
value = 1
102102
}

0 commit comments

Comments
 (0)