We noticed a bug in Figma. For Figma components where we have connected multiple labels (React and SwiftUI) the Code Connect panel does not show the correct code for SwiftUI, but the pop ups do (after clicking either "View connection" or "Explore component behavior").
I added some logs, and it turns out for SwiftUI .executeTemplate() on an instance swap prop is returning the React template, not the SwiftUI template. I'm not sure about the source of the bug any deeper than that.
You can see in the screenshot in the pop up we get the correct output, in the panel it has undefined.
This seems to only affect Figma in the browser, not the Figma desktop app.
@figma/code-connect version: 1.4.1
Parser: custom
Platform: macOS