title: the viewcontroller does not respect the constraints (xamarin.ios)
body: <p>I was trying a slide transaction on xamarin.ios where the vc2 (the one initialized in the code) flows over the vc1 (the previous one) and is full-screen, however in my code the vc1 interpenetrates with the constraints that are not respected when the animation ends, resulting in this way ..</p>
  <p><a href="https://i.stack.imgur.com/qmUHs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qmUHs.png" alt="enter image description here" /></a></p>
  <p>while the result should be this ..</p>
  <p><a href="https://i.stack.imgur.com/OeHi9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OeHi9.png" alt="enter image description here" /></a></p>
  <p>now I have been trying to solve it case for a while, I ran out of solutions and I still don't understand why it looks like that, the code is this ..</p>
  <pre><code>public void SlideTo(UIView View, string A)
      {
          var CC = CGAffineTransform.MakeTranslation(View.Bounds.Size.Width, 0);
          var DD = CGAffineTransform.MakeTranslation(0, 0);
  
          //Istanzio il vc
          var storyboard = UIStoryboard.FromName(&quot;Main&quot;, null);
          var vc = storyboard.InstantiateViewController(A);
          
          CALayer gradient = new CALayer();
          gradient.Frame = vc.View.Bounds;
          vc.View.Layer.InsertSublayer(gradient, 1);
          View.AddSubview(vc.View);
  
          //Centro quella giusta
          vc.View.Transform = true ? CC : DD;
  
          UIView.Animate(1, 0, UIViewAnimationOptions.CurveLinear, () =&gt;
          {
              vc.View.Transform = true ? DD : CC;
  
  
          }, null);
      }
  </code></pre>
  <p>please only solutions for xamarin.ios (not swift)</p>