Answers for "how to call app delegate function in swift"

1

how to call app delegate function in swift

// get a reference to the app delegate
guard let let appDelegate: AppDelegate? = UIApplication.shared.delegate as? AppDelegate else { return }

// call function
appDelegate.someFunc()
Posted by: Guest on March-18-2020

Code answers related to "how to call app delegate function in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language