MCPcopy Create free account
hub / github.com/bernaferrari/FigmaToCode / swiftuiFrame

Function swiftuiFrame

packages/backend/src/swiftui/swiftuiMain.ts:159–170  ·  view source on GitHub ↗
(
  node: SceneNode & BaseFrameMixin,
  indentLevel: number,
)

Source from the content-addressed store, hash-verified

157};
158
159const swiftuiFrame = (
160 node: SceneNode & BaseFrameMixin,
161 indentLevel: number,
162): string => {
163 const children = widgetGeneratorWithLimits(
164 node,
165 node.children.length > 1 ? indentLevel + 1 : indentLevel,
166 );
167
168 const anyStack = createDirectionalStack(children, node);
169 return swiftuiContainer(node, anyStack);
170};
171
172const createDirectionalStack = (
173 children: string,

Callers 1

swiftuiWidgetGeneratorFunction · 0.85

Calls 3

createDirectionalStackFunction · 0.85
swiftuiContainerFunction · 0.85

Tested by

no test coverage detected