Note
This project is no longer maintained. An alternative is the declarative framework Adwaita for Swift.
Libadwaita is an imperative UI framework for GNOME.
If you are using a Linux distribution, install libadwaita-devel or libadwaita (or something similar, based on the package manager) as well as gtk4-devel, gtk4 or similar.
On macOS, follow these steps:
- Install Homebrew.
- Install Libadwaita (and thereby GTK 4):
brew install libadwaita
- Open your Swift package in GNOME Builder, Xcode, or any other IDE.
- Open the
Package.swiftfile. - Into the
Packageinitializer, underdependencies, paste:
.package(url: "https://github.com/david-swift/Libadwaita", from: "0.1.0") You can find an example project here. I encourage you to use Libadwaita indirectly with the declarative Adwaita wrapper.
- The contributors, especially JCWasmx86 for having started the project
- SwiftLint for checking whether code style conventions are violated
- The programming language Swift
- SourceDocs used for generating the docs
- Libadwaita for the widgets