title: Image full screen width in SwiftUI
body: <p>I added an image to my body in a SwiftUI application and want to have that image cover the full width of the device, but not go over it.</p>
  
  <p>In <code>body</code>, I return the image object:</p>
  
  <pre><code>var body: some View {
      Image("page-under-construction")
  }
  </code></pre>
  
  <p>and the image shows up, however, it's too big:</p>
  
  <p><img src="https://i.stack.imgur.com/aHCsY.png" height="300" /></p>
  
  <p>I tried setting the frame: that affects the highlighted boundaries, but the image does not resize.<br>
  In combination, I played around with <code>.aspectRatio(contentMode:)</code>, which did not seem to have any effect on the layout.</p>
  
  <p>How can I have the image be effectively 100% of the screen width?</p>