title: Swift: Cannot assign value of type 'Item?' to type 'Item?.Type'
body: <p>I have a class called Item with the following properties:</p>
  
  <pre><code>var name: String
  var photo: UIImage?
  var description: String?
  var favorite: Bool
  </code></pre>
  
  <p>The init method looks like so:</p>
  
  <pre><code>init?(name: String, photo: UIImage?, description: String?,
      favorite: Bool) {
  
      guard !name.isEmpty else {
          return nil
      }
  
      self.name = name
      self.photo = photo
      self.description = description
      self.favorite = favorite
  }
  </code></pre>
  
  <p>In the ViewController, I am trying to instate the variable "item" like so:</p>
  
  <pre><code>var item = Item?
  </code></pre>
  
  <p>The item is optional because it will only be created if the user pressed the save button. However, there is an error saying "Expected member name or constructor call after type name". I have used the same line with a similar Meal class before without issues.</p>
  
  <p>When I try to create the item using this code:</p>
  
  <pre><code>    let name = nameTextField.text ?? ""
      let photo = photoImageView.image
      let favorite = favoriteButton.favorite
      let description = descriptionTextView.text
  
      item = Item(name: name, photo: photo, description: description, favorite: favorite)
  </code></pre>
  
  <p>An error says "Cannot assign value of type 'Item?' to type 'Item?.Type' (aka 'Optional.Type')". I am new to Swift and unsure what is going on and where the issue is. </p>