[Attributes inspector] -> [Switch] -> [State]を[Off]

または
swift
1import UIKit
2
3class ViewController: UIViewController {
4
5 @IBOutlet weak var sw: UISwitch!
6
7 override func viewDidLoad() {
8 super.viewDidLoad()
9 // Do any additional setup after loading the view.
10 sw.setOn(false, animated: true)
11 }
12}
setOn(_:animated:) - UISwitch | Apple Developer Documentation
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。