OpenGraph is an open source implementation of Apple's Private framework - AttributeGraph
AttributeGraph is a high performance computing engine written in C++ and Swift.
And it powers the underlying computing and diffing of SwiftUI.
CI Status |
---|
The project is for the following purposes:
- Add OG support for non-Apple platform (eg. Linux, WASI and Windows)
- Diagnose and debug AG issues on Apple platform
Currently, this project is in early development.
Add OpenGraph as a dependency in your Package.swift
:
dependencies: [
.package(url: "https://github.com/OpenSwiftUIProject/OpenGraph.git", from: "0.2.0")
]
Note
- You may need to configure the Swift toolchain header for proper integration of OpenGraph
- By default, OpenGraphShims will use the private AttributeGraph as its implementation on Apple platforms
For a simpler setup, you can use the prebuilt XCFramework available on the releases page.
The current suggested toolchain to build the project is Swift 6.1.2 / Xcode 16.4.
See LICENSE file - MIT
See CREDITS.md for third-party licenses and acknowledgements.