add toggle without text swiftui code example
Example: add toggle without text swiftui
Toggle("Turn alarm on", isOn: $isToggleOn)
.labelsHidden() // Hides the label/title
Toggle("Turn alarm on", isOn: $isToggleOn)
.labelsHidden() // Hides the label/title