@State private var flippedHeads = true var body: some View { Text(flippedHeads ? "Heads" : "Tails") .onTapGesture { flippedHeads = Bool.random() } }