title: How can I draw a line between Shapes in SwiftUI?
body: <p>I have HStacks in a ScrollView, and in the HStacks there are circles and texts. How could I draw a line between the circles? (It's a bus's route)</p>
  <p><a href="https://i.stack.imgur.com/H3Qic.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H3Qic.png" alt="enter image description here" /></a></p>
  <pre><code>ForEach(stations, id: \.id) { station in
                  
                  HStack{
                      Spacer().frame(width: 20)
                      Circle()
                          .stroke(Color.black,lineWidth: 4)
                          .frame(width: 10, height: 10)
                      Spacer().frame(width: 20)
                      
                      Text(station.name)
                      
                      Spacer()
                      
                      if station.id &gt; 0 {
                          Text(String(station.id))
                      }
                      
                      
                      let time = getNextDepartureTime(id: station.id)
                      
                      Text(&quot;\(time.hour):\(time.minute)&quot;)
                      
                      Spacer().frame(width: 20)
                      
                  }
                  
              }
  </code></pre>