I'am displaying a text whose value is changed based on a different value, this is how I implemented it:
Text((skateGame.getState() == .player1Set || skateGame.getState() == .player1Try) ? skateGame.getPlayer1().getName() : skateGame.getPlayer2().getName()) .font(.system(size: width * 0.08, weight: .bold, design: .rounded)) .foregroundColor(Color.white) .padding(.top, height * 0.02) .padding(.bottom, height * 0.02) How can I animate the transition between the values? For example with a bouncing motion or a fade in and out?
skateGametype? The problem might be in observing/updating view.