title: How to create managedObjectContext using Swift 3 in Xcode 8?
body: <p>Facing issue "Value of type 'AppDelegate' has no member 'managedObjectContext' In new Xcode 8 (using Swift 3, iOS 10) when trying to create new context in View Controller </p>
  
  <pre><code>let context = (UIApplication.shared().delegate as! AppDelegate).managedObjectContext
  </code></pre>
  
  <p>In Xcode 8 there is no code for managedObjectContext inside AppDelegate.swift file. Core Data stack code inside AppDelegate.swift presented only with: lazy var persistentContainer: NSPersistentContainer property and func saveContext () . There is no managedObjectContext property.</p>
  
  <p>How to create managedObjectContext using Swift 3 in Xcode 8) or maybe there is no need to do it using Swift 3 ? </p>