46 lines
1.3 KiB
Swift
46 lines
1.3 KiB
Swift
//
|
|
// 7_ReadyViewController.swift
|
|
// Guibe
|
|
//
|
|
// Created by Max Hunt on 28/05/2019.
|
|
// Copyright © 2019 8. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class R7adyViewController: UIViewController {
|
|
|
|
let defaults = UserDefaults.standard
|
|
|
|
@IBOutlet weak var loadingScreen: UIImageView!
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
|
|
defaults.set(2, forKey: "setupDone")
|
|
|
|
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
|
|
let nextViewController = self.storyboard?.instantiateViewController(withIdentifier: "mainScreen") as! MainViewController
|
|
nextViewController.modalTransitionStyle = .crossDissolve
|
|
nextViewController.modalPresentationStyle = .fullScreen
|
|
self.present(nextViewController, animated: true, completion: nil)
|
|
}
|
|
|
|
loadingScreen.accessibilityLabel = "ghibe is loading"
|
|
|
|
// 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.
|
|
}
|
|
*/
|
|
|
|
}
|