A method for handling orientation and device selection using agent-driven Xcode MCP connections A developer documented a workaround for rendering SwiftUI previews on chosen devices and orientations by driving Xcode's MCP bridge (xcrun mcpbridge) from an external agent on Xcode 27.0 RC. Orientation is handled by passing a value from each RenderPreview result's supportedPreviewVariantOverrides field back as previewVariantOverrides, while device selection requires calling XcodeSwitchRunDestination to change the workspace's active run destination and waiting roughly 45 seconds before the first render. The developer also reported that XcodeListRunDestinations hung for 240 seconds twice on the release candidate, so the switch tool should be called with a display title directly. Workarounds for "Letting AI See SwiftUI": device and orientation in RenderPreview Notes on the open problems in fatbobman's post, from driving Xcode's MCP bridge xcrun mcpbridge from an external agent. Observed on Xcode 27.0 RC, with plain Preview no PreviewProvider . Orientation: solved with previewVariantOverrides Every RenderPreview result includes a supportedPreviewVariantOverrides field listing the variants that preview accepts. Pass one back as previewVariantOverrides and the render uses it: { "workspaceIdentifier": "