You can do the same thing with swiftui. The surface you render to doesn't have to be visible at all. And the tree has nice introspection available.