title: What is the proper Swift-UI way for sizing UI elements in extracted subviews?
body: <p>Supposing I have the main view of my application and I need to create many different images, texts, buttons, textfields, ... with proper sizes to get a neat layout - device independently.</p>
  <p>My current approach was to work with GeometryReader to get the screen-sizes (width, height) of the device and based on this I compute their sizes.</p>
  <pre><code>struct MyView: View {
      var body: some View {
          GeometryReader { g in
              ...
              VStack {
                  Subview1(g, ...)
              }
              ...
              HStack {
                  Subview2(g, ...)
  
                  ...
  
                  Subview7(g, ...)
              }
              ...
          }
      }
  }
  </code></pre>
  <p><strong>One of the many subviews as example:</strong></p>
  <pre><code>struct Subview5: View {
  
      var g: GeometryProxy
      ...
  
      var body: some View {
          Image(...)
              .frame(width: g.size.width * 0.5, height: g.height * 0.3)
      }
  }
  </code></pre>
  <p>So with passing the geometry of the main view to the extracted subviews the code gets more and more difficult to read.</p>
  <p>Is there another more elegant or a typical Swift-UI way doing this?</p>
  <p>Thank you for taking your time in answering my question!</p>