title: SwiftUI: resize View to the content size
body: <ol>
  <li>I have some large view full of some sort of subViews</li>
  <li>I don't know which size of content of the view</li>
  </ol>
  
  <p>How to:</p>
  
  <ol>
  <li>Automatically resize view to it's content</li>
  <li>Set maxSize of window? (If content is larger than this size, window must will have this size, but not content size.)</li>
  </ol>
  
  <hr>
  
  <p>At the moment I think about following direction:</p>
  
  <ol>
  <li><p>Wrap it with frame </p>
  
  <pre><code>.frame(minWidth: 450, idealWidth: 1000, maxWidth: .infinity, minHeight: 250, idealHeight: 1000, maxHeight: .infinity)
  </code></pre></li>
  <li><p>to use GeometryReader go get parent size</p></li>
  </ol>
  
  <p>but I don't know how to do this correctly</p>