alterne o botão Swift

Toggle("Show welcome message", isOn: $showGreeting)
	.toggleStyle(SwitchToggleStyle(tint: .red))

if showGreeting {
	Text("Hello World!")
   }
Frog Caller