DevTechie
Published in

DevTechie

Text Size Animation in SwiftUI

Photo by Randy Tarampi on Unsplash

Change in Text view’s font size is animatable property, but the experience can be a bit choppy.

Let’s first see what I am talking about, then we will explore one of the potential solutions.

struct TextSizeAnimation: View {
@State private var animate = false
var body: some View {
Text("DevTechie")
.font(.system(size: animate ? 70 : 12))…

--

--

--

DevTechie.com is all about sharing knowledge by practical means. We focus on solving real world challenges via code.

Recommended from Medium

How to Speed Up iOS Development By Using Go

OnCollisionEnter Vs. OnTriggerEnter — which one do I use?

Full screen modal view in SwiftUI (iOS 13)

iOS 14 UICollectionView — New Additions

A banner image

Swipeless Tinder Using iOS 14 Vision Hand Pose Estimation

Builder Design Pattern in Swift

Abstract Factory Design Pattern in Swift

A more accessible audio player

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
DevTechie

DevTechie

DevTechie creates tutorials at www.youtube.com/c/DevTechie. Also video courses on: www.udemy.com/user/devtechie/ and courses on: www.patreon.com/DevTechieInc

More from Medium

Disable Scroll Programmatically in SwiftUI

What is PreferenceKey in SwiftUI

SwiftUI — Animating Views on Screen

Closures in Swift, SwiftUI