static func appInstance() -> AppDelegate { guard let appDelegate = UIApplication.shared.delegate as? AppDelegate else { fatalError("Can't get app delegate") } return appDelegate }