Check out example codes for "add toggle without text swiftui". It will help you in understanding the concepts better.

Code Example 1

Toggle("Turn alarm on", isOn: $isToggleOn)
    .labelsHidden() // Hides the label/title

Learn ReactJs, React Native from akashmittal.com