title: SwiftUI squared image in a circle
body: <p>I try to draw a squared <code>Image</code> inside of a <code>Circle</code> to get something like that (without blue square here. It is just to show image squared border):</p>
  <p><a href="https://i.stack.imgur.com/OTyrT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OTyrT.png" alt="squared Image in a Circle" /></a></p>
  <p>This code makes squared image over all circle.</p>
  <pre><code>ZStack() {
      Circle()
          .fill(.orange)
          
      Image(systemName: &quot;trash&quot;)
          .resizable()
          .foregroundColor(.blue)
          .background(.orange)
  }
  </code></pre>
  <p>This code makes a small image on the circle or no circle at all:</p>
  <pre><code>ZStack() {
      Circle()
          .fill(.orange)
          
      Image(systemName: &quot;trash&quot;)
          .foregroundColor(.blue)
          .background(.orange)
  }
  </code></pre>
  <p>I try to find a solution to have squared image <strong>inside</strong> the circle. It should not goes outside of it.
  Maybe, I would also need a small margin between image and circle's border.</p>
  <p>Is there a way to do that easily? Or I have to use math to get circle border or something like that?</p>