title: SwiftUI - corner radius changes the height of an image
body: <p>If the <code>.cornerRadius</code> modifier comes after the <code>.frame</code> modifier, the image becomes much slower. What is the reason behind this ?</p>
  <pre><code>struct ContentView: View {
      var body: some View {
          VStack(spacing: 100) {
              Image(&quot;image1&quot;)
                  .resizable()
                  .scaledToFill()
                  .frame(width: 343, height: 184)
                  .cornerRadius(8)
              Image(&quot;image1&quot;)
                  .resizable()
                  .scaledToFill()
                  .cornerRadius(8)
                  .frame(width: 343, height: 184)
          }
      }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/8tGFo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8tGFo.png" alt="simulator screenshot:" /></a></p>