BTW Debugging with XD is interesting because if something doesn’t work in code one way to debug is to start over with the most basic function or functionality and then add back in piece by piece.
With an XD project doing that meant creating a new artboard and then adding back in scene node by scene node.