Answers for "toggle button swift"

0

toggle button swift

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

if showGreeting {
	Text("Hello World!")
   }
Posted by: Guest on April-17-2022

Code answers related to "Swift"

Browse Popular Code Answers by Language