@IBOutlet weak var switchDemo: UISwitch! override func viewDidLoad() { super.viewDidLoad() switchDemo.transform = CGAffineTransform(scaleX: 0.75, y: 0.75) }