Closed ghost closed 4 years ago
Hi Roy,
You can just initialize it with an empty node (Group()
) and when you will be ready assign the correct value:
view.node = ...
view.node? Where is the Node collection for the class found?
I have class MacawChartView: MacawView
And there is no .node exposed
Here is MacawView.node. Probably you're doing something wrong if you can't access it.
When using super.init(...) to initialize a MacawView, it begins to create the node, etc. Using static data, this is fine. But is there a way to delay the instantiation when I need to wait for variables to finish assigning? (i.e. from a Firestore query)