title: Swift - Present a UIView (not a ViewController)
body: <p>I have two <code>UIViewControllers</code> and I would like to <code>.present</code> the gray <code>UIView</code> like you would usually present a <code>ViewController</code> (appearing bottom up and user can slide down to dismiss). </p>
  
  <p>Screenshots for a better understanding:</p>
  
  <p><a href="https://i.stack.imgur.com/E3J4n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E3J4n.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/sDc7W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sDc7W.png" alt="enter image description here"></a></p>
  
  <p>The bottomBar is a <code>ContainerView</code> and should not change by switching between the VC's, only the gray <code>UIView</code> which you can see in the 2nd picture. </p>
  
  <p>I know I could just <code>.present</code> <code>ViewControllerB</code> without an animation and then just let the <code>UIView</code> appear from out of the screen. But if I do it like this the user is not able to drag down the <code>UIView</code> to <code>dismiss</code> it. </p>
  
  <p>This is how I present <code>ViewControllerB</code> ("wishlistViewController) at the moment. </p>
  
  <pre><code>let wishlistViewController = self.storyboard?.instantiateViewController(withIdentifier: "WishlistVC") as! WishlistViewController
  
          wishlistViewController.modalPresentationStyle = UIModalPresentationStyle.overCurrentContext
  
          self.navigationController?.present(wishlistViewController, animated: false)
  }
  </code></pre>
  
  <p><strong>Main Problem</strong> is that my <code>UIView</code> is not fullscreen. Otherwise I could just <code>.present</code> <code>ViewControllerB</code>. However, with my design the background image would be animated by <code>.presenting</code> or <code>.dismissing</code> as well and I do not want that. </p>
  
  <p>There is probably a very easy solution for this but I couldn't find on presenting ONLY a <code>UIView</code>.
  Grateful for any tips :)</p>