Written for TrailingClosure.com.
TCAnimatedText is a SwiftUI package that adds animations to ordinary
Text
views. When the input string of theAnimatedText
changes, your text will come to life and showcase it's change with a wonderful animation.
// Three Parameters:
// -- String Input
// -- Character Change Duration (seconds)
// -- Modifier Closure to change text style directly
AnimatedText($input, charDuration: 0.07) { text in
text
.font(.largeTitle)
.fontWeight(.bold)
.foregroundColor(.green)
}