Obtenha a instância AppDelegate Swift

let appDelegate = UIApplication.shared.delegate as! AppDelegate
let aVariable = appDelegate.someVariable
Clumsy Cod