Working on the layout in #swiftui for a railway diagram generated for each station.

I've iterated through a bunch of different layout techniques (even custom AlignmentGuides!) but ended up with something I like that’s still pretty readable.

This will get more complicated as I deal with more of the required cases (see hand-drawn diagram).

OK I think I've got all the station position variants covered:
@twocentstudios One case that you may not need to cater for, but comes to mind: routes with three stops. If you're on stop 1 of 3, the dashed line betwen stop 2 and "end of route" could conceivably be solid, but still makes sense as-is.
@Two9A Good call! I just tested it out and I need to tune the logic a bit for one of the 3-station cases and both the 2-station cases.
@twocentstudios I really like your process. This kind of visual prototyping is so much fun in SwiftUI!
@twocentstudios omg I love this, *screams in transit nerd*