swiftui_preview
Render SwiftUI views in a simulator to preview them directly. Specify the Swift file path, preview name, and color scheme (light/dark) for accurate visualization.
Instructions
Generate a preview of a SwiftUI view by rendering it in a simulator
Input Schema
Name | Required | Description | Default |
---|---|---|---|
colorScheme | No | ||
previewName | No | ||
swiftFilePath | Yes |
Input Schema (JSON Schema)
{
"properties": {
"colorScheme": {
"enum": [
"light",
"dark"
],
"type": "string"
},
"previewName": {
"type": "string"
},
"swiftFilePath": {
"type": "string"
}
},
"required": [
"swiftFilePath"
],
"type": "object"
}