title: How to open subview under textfield in Swift?
body: <p>On click textfield, subview is opened over root view. I want to open the view under the textfield.</p>
  
  <p>My subview code is bellow. <strong>Category</strong> is my <strong>ViewController</strong> which is opened as subview. Problem is that <strong>Category</strong> subview open over root view.</p>
  
  <pre><code>let popUpVc = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "Category") as! Category        
  popUpVc.categoryDelegate = self
  self.addChildViewController(popUpVc)
  popUpVc.view.frame = self.view.frame
  self.view.addSubview(popUpVc.view)
  </code></pre>
  
  <p>Please help me.</p>