timer
import UIKit
class ViewController: UIViewController {
let times: [String: Int] = ["soft":300, "medium":420,"hard":720]
var secondsRamaining = 60
var timer = Timer() // declare the timer
@IBAction func hardnessSelected(_ sender: UIButton) {
secondsRamaining =...