guide/Guibe/InstructionsViewController.swift
2019-06-06 19:29:36 +01:00

77 lines
2.3 KiB
Swift

//
// InstructionsViewController.swift
// Guibe
//
// Created by Max Hunt on 02/06/2019.
// Copyright © 2019 8. All rights reserved.
//
import UIKit
import MapKit
class InstructionsViewController: UIViewController {
@IBOutlet weak var separator: UIImageView!
@IBAction func backBtnPressed(_ sender: Any) {
self.dismiss(animated: true, completion: nil)
}
@IBAction func writtenInstructionsBtnPressed(_ sender: Any) {
// let mvc = MainViewController()
// let ivc = WrittenInstructionsViewController()
//
// ivc.stepBySteps = mvc.textSteps
// ivc.currentStep = mvc.stepCounter
}
@IBAction func easterEggPressed(_ sender: Any) {
separator.isHidden = true
self.view.backgroundColor = .green
DispatchQueue.main.asyncAfter(deadline: .now() + 0.4) {self.view.backgroundColor = .red}
DispatchQueue.main.asyncAfter(deadline: .now() + 0.8) {self.view.backgroundColor = .blue}
DispatchQueue.main.asyncAfter(deadline: .now() + 1.2) {self.view.backgroundColor = .yellow}
DispatchQueue.main.asyncAfter(deadline: .now() + 1.6) {self.view.backgroundColor = .cyan}
DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {self.view.backgroundColor = .magenta}
DispatchQueue.main.asyncAfter(deadline: .now() + 2.4) {self.view.backgroundColor = .white;self.separator.isHidden = false}
}
@IBAction func VABtnPressed(_ sender: Any) {
}
// ivc.stepBySteps = mvc.textSteps
// var stepsText: [MKRoute.Step]?
// var currentStep: Int = 0
override func viewDidLoad() {
super.viewDidLoad()
// let mvc = MainViewController()
// let ivc = WrittenInstructionsViewController()
//
// print("-----InVC-----")
// print(stepsText)
// print(currentStep)
//
// ivc.stepBySteps = mvc.textSteps
// ivc.currentStep = mvc.stepCounter
// 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.
}
*/
}