title: swiftUI transitions: Scale from some frame - like iOS Homescreen is doing when opening an App
body: <p>How do I get the effect in a translation, that iOS home screen does when opening an App: It scales the App to fullscreen, starting from the App-icon on the home screen?</p>
  
  <p>In my code, I have the icon-frame (<code>CGRect</code>) with position, width and height and I have the final frame. Is there a way to (probably combine some) transitions to get a scaling from the icon-frame to the final frame?</p>
  
  <p>I get somewhat similar with: </p>
  
  <pre><code>view.transition(AnyTransition.scale(scale: 0, anchor: UnitPoint.trailing))
  </code></pre>
  
  <p>Which scales from zero to the original size, starting from trailing center position.
  It's only close as:</p>
  
  <ul>
  <li>it scales from zero instead of the size of the original icon</li>
  <li>it starts from a fixed point (trailing, center) but I'd like to let it start from where the icon is.</li>
  </ul>
  
  <p>Just to be sure: It must be a transition as the view is newly created and dropped. I tried with keeping the view and just change its opacity to show/hide it. With many other problems like not getting the reverse animation, when the view disappears.</p>