Just had a major conceptual breakthrough on what it means to build a routing system in an app 🤩
Conversation
My breakthrough is conceptualizing routing around inside an app as walking through a directed graph. Nodes are “pages” within the app. Edges are how you can get from page to page
I’ve been thinking a lot about syntax around routing, and I love this graph-based idea
6
20
I've modeled apps this way before and it works great. Basically a state machine.
1
3
Awesome! Any chance you have some literature or code online I can dig through to read more about this approach?
2
3
I think this is the only public example I have (from 4 years ago): github.com/mindsnacks/MSS
I made it for
1
5
I then learned a lot from how to model these very cleanly with enums on Swift, but I can't think of any examples of that that are public.
1
2
Man I miss working with . One of my fav memories of our time on UIKit was whiteboarding gesture recognizer exclusion, him suddenly stepping back, thinking a second, & then shouting out “This is the vertex coloring problem!” and disappearing into his office 🤯😂
2
17


