From 2197f3d80c5c45e8ea3af78fbb7f0c2f0613f6e8 Mon Sep 17 00:00:00 2001 From: Max Hunt Date: Wed, 29 May 2019 11:16:52 +0100 Subject: [PATCH] setup&prefs --- Guibe/7_ReadyViewController.swift | 4 ++++ Guibe/Base.lproj/Main.storyboard | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/Guibe/7_ReadyViewController.swift b/Guibe/7_ReadyViewController.swift index 5387554..b90f535 100644 --- a/Guibe/7_ReadyViewController.swift +++ b/Guibe/7_ReadyViewController.swift @@ -9,10 +9,14 @@ import UIKit class R7adyViewController: UIViewController { + + let defaults = UserDefaults.standard 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 diff --git a/Guibe/Base.lproj/Main.storyboard b/Guibe/Base.lproj/Main.storyboard index b7023bf..387afbc 100644 --- a/Guibe/Base.lproj/Main.storyboard +++ b/Guibe/Base.lproj/Main.storyboard @@ -211,6 +211,13 @@ +