title: How to get a GeometryReader to work only in one dimension?
body: <p>I am using a Geometry Reader to control the horizontal layout of some child views in a HStack. The child views must finally be equally spaced and their numbers are not fixed. This works fine without any problems.</p>
  <p>However, the vertical layout, which is solely determined by the content (child views), is expanded to max available height by the geometry reader (which is standard behaviour).</p>
  <p>Any suggestions on how to overcome this behaviour are welcome?</p>
  <p>(Another way of explaining the problem is to say that a <strong>Horizontal Geometry Reader</strong> would solve the problem)</p>
  <p>Hereby a code snippet added for clarity:</p>
  <pre><code>public struct ToolbarView: View {
      
      @ObservedObject public var viewModel: ToolbarViewModel
      
      public var body: some View
      {
          GeometryReader { geometry in
              
              HStack(spacing:0) {
                  ForEach(self.viewModel.items.filter({ $0.visible })) { item in
                      ToolbarItemView(itemViewModel:item, toolbarViewModel: self.viewModel)
                          .frame(width:geometry.size.width / CGFloat(Double(self.viewModel.items.count)))
                          .font(self.viewModel.textFont)
                  }
              }
          }.frame(height:CGFloat(50))
      }
  }
  </code></pre>