title: Use of unresolved identifier "Model" in core data swift ios
body: <p>I am saving the data in an entity named <code>Forms</code> but when I am calling the <code>Forms</code> it gives me error
  Everything was fine, but suddenly error occurred and it now irritates me a lot. I don't know why even there is no any syntax error.</p>
  
  <blockquote>
    <p>use of unresolved identifier "Forms"</p>
  </blockquote>
  
  <p><strong>Here is my code</strong></p>
  
  <pre><code>import UIKit
  import CoreData
  
  @available(iOS 11.0, *)
  class ViewViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
      // var getAddController : AddViewController = AddViewController()
      var fName : String?
      var fDesc : String?
      var formName : String?
      var results : [NSManagedObject] = []
  
      @IBOutlet weak var menu: UIBarButtonItem!
      @IBOutlet weak var viewTableView: UITableView!
  
      var manageObjectContext: NSManagedObjectContext!
      var eventArray = [Forms]()  // Where **Forms** is an model name
  
      let appDel = UIApplication.shared.delegate as! AppDelegate
      let request = NSFetchRequest&lt;NSFetchRequestResult&gt;(entityName: "Forms")
      //var eventRequest: NSFetchRequest&lt;Forms&gt; = Forms.fetchRequest()
  
      func loadSaveData()  {
          let eventRequest: NSFetchRequest&lt;Forms&gt; = Forms.fetchRequest()
          do{
              eventArray = try manageObjectContext.fetch(eventRequest)
              self.viewTableView.reloadData()
          }catch
          {
              print("Could not load save data: \(error.localizedDescription)")
          }
      }
  
      ...
      table view methods here
      ...
  
      func moveToEdit() {
          let mainStoryBoard: UIStoryboard = UIStoryboard(name: "Main", bundle : nil)
          let desController = mainStoryBoard.instantiateViewController(withIdentifier: "EditViewController") as! EditViewController
          let newFrontViewController = UINavigationController.init(rootViewController:desController)
          revealViewController().pushFrontViewController(newFrontViewController, animated: true)
      }
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          menu.target = revealViewController()
          menu.action = #selector(SWRevealViewController.revealToggle(_:))
          self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())
  
          let context = appDel.persistentContainer.viewContext
          results = try! context.fetch(request) as! [NSManagedObject]
  
          viewTableView.delegate = self
          viewTableView.dataSource = self
          viewTableView.reloadData()
  
          request.returnsObjectsAsFaults = false
  
          manageObjectContext = (UIApplication.shared.delegate as! AppDelegate).persistentContainer.viewContext
          self.loadSaveData()
      }
  }
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>after changing from <code>var eventArray = [Forms]()</code> to 
       <code>var eventArray : [NSManagedObject] = []</code> </p>
  
  <p>I am getting an error inside the  <code>func loadSaveData()</code>  </p>
  
  <pre><code> let eventRequest: NSFetchRequest&lt;Forms&gt; = Forms.fetchRequest()
  </code></pre>
  
  <blockquote>
    <p>use of undeclared type "Forms"</p>
  </blockquote>