// // 5_HandChoiceViewController.swift // Guibe // // Created by Max Hunt on 28/05/2019. // Copyright © 2019 8. All rights reserved. // import UIKit class H5ndChoiceViewController: UIViewController { @IBOutlet weak var lBtn: UIButton! @IBOutlet weak var rBtn: UIButton! @IBOutlet weak var textLbl: UITextView! @IBOutlet weak var altLbl: UILabel! @IBOutlet var vCtrl: UIView! @IBOutlet weak var lHand: UIButton! @IBOutlet weak var rHand: UIButton! let defaults = UserDefaults.standard @IBAction func lftHandPressed(_ sender: Any) { defaults.set(1, forKey: "handSide") let nextViewController = self.storyboard?.instantiateViewController(withIdentifier: "screen6") as! S6deChoiceViewController nextViewController.modalTransitionStyle = .crossDissolve nextViewController.modalPresentationStyle = .fullScreen self.present(nextViewController, animated: true, completion: nil) } @IBAction func ritHandPressed(_ sender: Any) { defaults.set(2, forKey: "handSide") let nextViewController = self.storyboard?.instantiateViewController(withIdentifier: "screen6") as! S6deChoiceViewController nextViewController.modalTransitionStyle = .crossDissolve nextViewController.modalPresentationStyle = .fullScreen self.present(nextViewController, animated: true, completion: nil) } override func viewDidLoad() { super.viewDidLoad() altLbl.textColor = UIColor.secondaryLabel vCtrl.backgroundColor = UIColor.secondarySystemBackground lBtn.accessibilityLabel = "Left Hand" rBtn.accessibilityLabel = "Right Hand" textLbl.accessibilityLabel = "where would you like to wear ghibe" altLbl.accessibilityLabel = "where would you like to wear ghibe" // Do any additional setup after loading the view. } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destination. // Pass the selected object to the new view controller. } */ }