One way to animation the change in text size is to use scale effect, however the text
will appear blurred when scaled up. A custom AnimatableModifier can be used to
smoothly animate the resizing of text in SwiftUI, which results in displaying clear
text at all sizes through the animation.