title: UIEdgeInsetsInsetRect' has been replaced by instance method 'CGRect.inset(by:)
body: <p>I made the mistake up updating my project to Swift 4.2 without waiting for pods to be updated. I have slowly updated all of my code, but there's one line that I can't seem to figure out. </p>
  
  <pre><code>var animationRect = UIEdgeInsetsInsetRect(frame, UIEdgeInsets(top: padding, left: padding, bottom: padding, right: padding))
  </code></pre>
  
  <p>The error I receive is, </p>
  
  <blockquote>
    <p>UIEdgeInsetsInsetRect' has been replaced by instance method
    'CGRect.inset(by:)</p>
  </blockquote>
  
  <p>Any help with this would be greatly appreciated! </p>