title: How do I put Smooch's chat UI within popover?
body: <p>I have a problem and that is i'm trying to put Smooch's chat UI but this is always displayed in fullscreen mode in iPhone 6s. Can someone help me?</p>
  
  <pre><code>override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
      if segue.identifier == "popoverSegue" {
          // Get the new view controller using segue.destinationViewController.
          let popoverViewController: SmoochViewController = segue.destination as! SmoochViewController
          //popoverViewController.newViewController = Smooch.newConversationViewController()
          popoverViewController.modalPresentationStyle = UIModalPresentationStyle.popover
          popoverViewController.popoverPresentationController!.delegate = self
      }
  }
  </code></pre>
  
  <p>This is how I'm trying to present SmoochViewController which displays the chat.</p>
  
  <pre><code>override func viewDidAppear(_ animated: Bool) {
      super.viewDidAppear(animated)
      // Adding some values to the user
      SKTUser.current()!.firstName = "Kevin" // User's first name
      SKTUser.current()!.lastName = "Bustillos Acurio" // User's lastname
      SKTUser.current()!.email = "kevinbustillos21@hotmail.com" // User's email
      SKTUser.current()!.signedUpAt = Date() // User's sign in date
  
      let conversation: SKTConversation = Smooch.conversation()!
  
      // Debugging messages (can be deleted)
      for message in conversation.messages! {
          print("MESSAGES \((message as! SKTMessage).text)")
      }
  
      let newViewController: UIViewController = Smooch.newConversationViewController()!
  
      // Display Smooch UI (it displays the UI, the messages, avatars, all...)
      Smooch.showConversation(from: newViewController)
  
  
      // Just for debugging
      print("USER ID \(SKTUser.current()!.userId)")
      print("SMOOCH ID \(SKTUser.current()!.smoochId)")
      print("CURRENT USER FIRST NAME: \(SKTUser.current()!.firstName)")
      print("CURRENT USER LASTNAME: \(SKTUser.current()!.lastName)")
      print("CURRENT USER EMAIL: \(SKTUser.current()!.email)")
      print("CURRENT USER DATE: \(SKTUser.current()!.signedUpAt)")
  }
  </code></pre>
  
  <p>And this is how I'm trying to present the chat in a different UIViewController</p>
  
  <p>Thanks!</p>