title: SwiftUI: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
body: <p>I've already extracted this to create a separate view, and I still keep on getting the same compile error message when I try to build.</p>
  <p>I can't think how I can break it down further.</p>
  <pre><code>struct MultiPicker: View  {
      @State var dateComponents = DateComponents()
      let instructionString = [&quot;hours&quot;, &quot;minutes&quot;]
      let pickerArray = [Array(0...12), Array(0...60)]
  
          var body: some View {
              GeometryReader { geometry in
                  HStack {
                      ForEach(0..&lt;pickerArray.count) { column in
                          let selection = column == 0 ? dateComponents.hour : dateComponents.minute
                          Picker(instructionString[column], selection: selection) {
                              ForEach(0..&lt;pickerArray[column].count) { row in
                                  Text(pickerArray[column][row].description)
                              }
                          }
                          .pickerStyle(WheelPickerStyle())
                                          .frame(width: geometry.size.width / CGFloat(self.data.count + 2), height: geometry.size.height)
                                          .clipped()
                      }
                  }
              }
          }
  }
  
  struct SlotMachine_Previews: PreviewProvider {
      static var previews: some View {
          
          MultiPicker()
      }
  }
  </code></pre>
  <p>Any suggestions gratefully received, thank you.</p>