SwiftGtk VS swift-cross-ui

Compare SwiftGtk vs swift-cross-ui and see what are their differences.

SwiftGtk

A Swift wrapper around gtk-3.x and gtk-4.x that is largely auto-generated from gobject-introspection (by rhx)

swift-cross-ui

A cross-platform declarative UI framework, inspired by SwiftUI. (by stackotter)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
SwiftGtk swift-cross-ui
6 3
313 478
- -
3.4 8.5
7 days ago 17 days ago
Swift Swift
BSD 2-clause "Simplified" License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

SwiftGtk

Posts with mentions or reviews of SwiftGtk. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-02.

swift-cross-ui

Posts with mentions or reviews of swift-cross-ui. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-27.
  • Writing Gnome Apps with Swift
    11 projects | news.ycombinator.com | 27 Mar 2024
    For another SwiftUI-like wrapper, see also https://github.com/stackotter/swift-cross-ui (used by Adawaita to generate widgets, and mentioned in other comments).

    The key premise of this approach is to provide a SwiftUI-like declarative wrapper around Gnome functionality. It's unclear what it adds over swift-cross-ui.

    SwiftUI itself has growing pains mainly around being on the right thread for processing/updates and getting data binding right.

    Blog entries on swift.org or from Apple tend to be little demos that show the happy path, but when discussing new frameworks (like a Gnome wrapper) or platforms (like the recent embedded), I'd like more demonstration that the authors understand and address key issues and will sustain development. Cross-platform UI frameworks get complicated quickly and have a long tail of issues (cf Flutter, Java/Eclipse, et al) that can be blockers for clients/users. For Swift it doesn't help to have multiple concurrency models and obviously different behaviors on apple platforms and Linux (where UI is not officially tested).

  • Mousetrap.jl: a GUI library for Julia and C++ that fully wrap GTK4
    4 projects | news.ycombinator.com | 19 Aug 2023
    Some interesting stuff happening here [1] and here [2] too.

    [1] https://github.com/stackotter/swift-cross-ui/tree/main

  • SwiftCrossUI - cross-platform SwiftUI-like UI framework built on SwiftGtk
    1 project | news.ycombinator.com | 14 Mar 2023

What are some alternatives?

When comparing SwiftGtk and swift-cross-ui you can also consider the following projects:

paper-plane - Chat over Telegram on a modern and elegant client

OpenSwiftUI - WIP — OpenSwiftUI is an OpenSource implementation of Apple's SwiftUI DSL.

awesome-gtk - List of awesome GTK (3/4) applications

Mousetrap.jl - Finally, a GUI Engine made for Julia

SKQueue - Monitor changes to files and directories using kernel event notifications (kqueue) in Swift

CImGui.jl - Julia wrapper for cimgui

PermissionsSwiftUI - A SwiftUI package to beautifully display and handle permissions.

Tokamak - SwiftUI-compatible framework for building browser apps with WebAssembly and native apps for other platforms

DraculaSur-custom-gtk-theme - MacOS Big Sur like theme for Gnome desktops with Dracula colors

OpenCombine - Open source implementation of Apple's Combine framework for processing values over time.

swift-gif - Cross-platform GIF encoder and decoder for Swift