title: How to have a point translate to a point of a Rectangle even when the rectangle resizes in SwiftUI?
body: <p>In the image below, i want the small black rectangle to cover the Green Color Heart Button on the top right.  The black rectangle should resize and cover the heart image when the size of the main image changes.</p>
  
  <p>How can I do something like this with SwiftUI?</p>
  
  <p>What I have tried to figure out so far:</p>
  
  <ol>
  <li>I think I need some way to translate the point-size of the rectangle to resize to the size of the resizing image. I do not know how to do this with SwiftUI</li>
  <li>I think I need need a <code>GeometryReader</code> in some way?</li>
  </ol>
  
  <p>Here is the image:</p>
  
  <p><a href="https://i.stack.imgur.com/2CK0i.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2CK0i.gif" alt="enter image description here"></a></p>