Skip to content

Instantly share code, notes, and snippets.

View reeichert's full-sized avatar
🏠
Working from home

João Reichert reeichert

🏠
Working from home
View GitHub Profile
@reeichert
reeichert / AppManager+Tutorial.swift
Created May 17, 2017 13:41
Should show tutorial
public class AppManager: NSObject {
static let userDefaults = UserDefaults.standard
static let shared = AppManager()
static let dataKey = "AppManagerDataKey"
static let tutorialKey = "AppManagerTutorialKey"
public func reset(for key: String) {
if var data = userDefaults.object(forKey: dataKey) as? [String: Bool] {
data.removeValue(forKey: key)