(name: string, injectCode: string)
| 13 | let previousExecutionCache: string[]; |
| 14 | |
| 15 | const getStructTemplate = (name: string, injectCode: string): string => |
| 16 | `struct ${name}: View { |
| 17 | var body: some View { |
| 18 | ${indentString(injectCode, 4).trimStart()}; |
| 19 | } |
| 20 | }`; |
| 21 | |
| 22 | const getPreviewTemplate = (name: string, injectCode: string): string => |
| 23 | `import SwiftUI |
no test coverage detected