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

Function swiftuiGroup

packages/backend/src/swiftui/swiftuiMain.ts:141–150  ·  view source on GitHub ↗
(
  node: GroupNode | SectionNode,
  indentLevel: number,
)

Source from the content-addressed store, hash-verified

139};
140
141const swiftuiGroup = (
142 node: GroupNode | SectionNode,
143 indentLevel: number,
144): string => {
145 const children = widgetGeneratorWithLimits(node, indentLevel);
146 return swiftuiContainer(
147 node,
148 children ? generateSwiftViewCode("ZStack", {}, children) : `ZStack() { }`,
149 );
150};
151
152const swiftuiText = (node: TextNode): string => {
153 const result = new SwiftuiTextBuilder().createText(node);

Callers 1

swiftuiWidgetGeneratorFunction · 0.85

Calls 3

swiftuiContainerFunction · 0.85
generateSwiftViewCodeFunction · 0.85

Tested by

no test coverage detected