title: Custom Markers View in Google Map displacing view inside it in Swift
body: <p>I have made a xib file of marker (Custom Marker), and assigning that xib file to marker.icon property. This xib file have superView and image inside it, But when it renders on Google Map, image inside SuperView displaces from the bottom as shown in attached image.</p>
  <p>And it is happening when I give Google Map View bottom constraints from superView of the ViewController. From safeArea, it is working fine. I have tried in iPhoneX.</p>
  <p>Assigning Xib file to Google Marker.</p>
  <pre><code>marker.iconView = createMarker(projectIndex: i)
  </code></pre>
  <p>Preparing marker method:</p>
  <pre><code>private func createMarker(projectIndex: Int) -&gt; UIView {
          let marker = MapMarker(frame: CGRect(x: 0, y: 0, width: 50, height: 50))
          marker.updateMarker(project: projects[projectIndex])
          marker.tag = projectIndex
          marker.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(onTapMarker)))
          return marker
  }
  </code></pre>
  <p>Below is Marker xib file.
  <a href="https://i.stack.imgur.com/VxC2k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VxC2k.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/UmOjD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UmOjD.jpg" alt="enter image description here" /></a></p>
  <p>I have spent hours on it but unable to find the bug, Please help me solve this. Thanks!</p>