Closed
Description
SwiftUI is a complex beast. Going through the codebase as well as other articles by people who've tried to understand how it concretely works, I recognize the following distinct graphs and hierarchies conceptually:
- The attribute graph (
OGGraph
andOGSubgraph
, subgraphs can own subgraphs and attributes) ViewGraph
Some questions that I don't have a good answer to despite going over the codebase a dozen times:
- How do
ViewInputs
andViewOutputs
relate to AttributeGraph? I see sifting through a lot of indirection that they're creatingAttribute
s in many places, I'm assuming the initialization/mutation of these attributes are tracked by some AttributeGraph-owned closure that they are being executed within. - What is the lifecycle of a
ViewGraph
? - Does
ViewGraph
maintain its hierarchy solely throughPreferenceBridge
? DisplayList
?- What other hierarchies are known to you?
Metadata
Metadata
Assignees
Labels
No labels