Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

toggle button swift

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

if showGreeting {
	Text("Hello World!")
   }
Source by www.hackingwithswift.com #
 
PREVIOUS NEXT
Tagged: #toggle #button #swift
ADD COMMENT
Topic
Name
8+8 =