|
|
1 месяц назад | |
|---|---|---|
| .. | ||
| ExampleApp | 1 месяц назад | |
| Tuist | 1 месяц назад | |
| .gitignore | 1 месяц назад | |
| Package.swift | 1 месяц назад | |
| Project.swift | 1 месяц назад | |
| README.md | 1 месяц назад | |
| Tuist.swift | 1 месяц назад | |
| open-xcode.sh | 1 месяц назад | |
| run-example.sh | 1 месяц назад | |
This directory contains a minimal OpenSwiftUI app with the stdout renderer
enabled. The Swift package depends on the local OpenSwiftUI checkout at ../...
./run-example.sh
The script selects AttributeGraph on macOS and Compute on other platforms,
then runs swift run ExampleApp.
Use the Tuist project when running the demo from Xcode on macOS:
./open-xcode.sh
The script runs tuist install, generates the workspace without opening during
generation, then opens StdoutRenderer.xcworkspace. If mise is available, the
script uses the repository-pinned Tuist version.
The Tuist project uses local OpenSwiftUI, OpenAttributeGraph, OpenRenderBox, and DarwinPrivateFrameworks dependencies so Xcode does not need to open the Swift package directly. Its package settings mirror the generated Example project's local OpenSwiftUI product destinations, keeping AttributeGraph enabled on macOS while preserving valid generated target platforms.
The example configures the app renderer with:
@_spi(StdoutRenderer) import OpenSwiftUI
static var rendererConfiguration: _RendererConfiguration? { .stdout() }