[:en]
How to create a working slider and set up simple constraits
// // ViewController.swift // slider2 // // Created by Cambridge on 9/4/2019. // Copyright © 2019 Cambridge . All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var speedindicator: UILabel! override func viewDidLoad() { super.viewDidLoad() } @IBAction func sliderAction(_ sender: UISlider) { speedindicator.text = String(Int(sender.value)) print("speechrate stored:\(Int(sender.value))") } }
[:]