I have an Objective C project and am trying to call the AppDelegate from a Swift view controller. This code is not working:
let appDelegate =
UIApplication.sharedApplication().delegate as! AppDelegate
let managedContext = appDelegate.managedObjectContext
Have you added the brining header to your project?
On top of that, if you do, make sure you import "AppDelegate.h" into the bridging header.
The in the swift class you should be able to call it with: