Clone other components to the same directory of OpenSwiftUI
cd ..
git clone https://github.com/OpenSwiftUIProject/OpenAttributeGraph.git
git clone https://github.com/OpenSwiftUIProject/OpenRenderBox.git
git clone https://github.com/OpenSwiftUIProject/DarwinPrivateFrameworks.git Since OpenAttributeGraph is not yet completed, you need to configure an AG backend before building.
Use Apple's private AttributeGraph framework (Darwin only):
export OPENSWIFTUI_OPENATTRIBUTESHIMS_ATTRIBUTEGRAPH=1Or use the Compute module:
export OPENSWIFTUI_OPENATTRIBUTESHIMS_COMPUTE=1
export OPENSWIFTUI_OPENATTRIBUTESHIMS_COMPUTE_USE_BINARY=1A OpenSwiftUI/SwiftUI App lifecycle example.
- Choose
SwiftUIDebugconfiguration to run with SwiftUI - Choose
OpenSwiftUIDebugconfiguration to run with OpenSwiftUI
A UIKit/AppKit hosting example that manually sets up the application lifecycle and window using UIHostingView / NSHostingView.
- Choose
SwiftUIDebugconfiguration to run with SwiftUI - Choose
OpenSwiftUIDebugconfiguration to run with OpenSwiftUI