bootsharp
swift-cross-ui
bootsharp | swift-cross-ui | |
---|---|---|
7 | 8 | |
741 | 1,171 | |
0.4% | 3.0% | |
7.0 | 9.4 | |
3 months ago | about 1 month ago | |
C# | Swift | |
MIT License | MIT License |
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.
bootsharp
-
A Vision for WebAssembly Support in Swift
C# does pretty well as far as WASM support goes, unlike Go which is abysmal :)
https://bootsharp.com/guide/llvm / https://github.com/elringus/bootsharp
-
Show HN: Nue – Apps lighter than a React button
It's not that you can't; it's that you choose not to. There are end-to-end solutions for C#, for example, that are perfectly fine depending on your use case (not great for all use cases).
There are also libraries like Bootsharp[1] that are doing interesting things, IMO.
[0] https://google.github.io/styleguide/jsguide.html#jsdoc
[1] https://sharp.elringus.com/
-
How to await a Task without Monitor?
It sounds like you want some JS to interact with some WASM and you're using some kind of JS to C# library. Its tests have some C# async methods and they're called here, that's probably a good guide to how to get this to work.
- DotNetJS: Use C# in any JavaScript environment: browsers, Node.js, VS Code web extensions, etc.
- DotNetJS: Use .NET in any JavaScript environment
- Compile C# project into single-file UMD JavaScript library to be used in any environment: browsers, node.js or custom ones, like web extensions for VS Code
swift-cross-ui
- Swift Cross UI: A cross-platform declarative UI framework, inspired by SwiftUI
-
A Vision for WebAssembly Support in Swift
As with other languages, you’d need bindings to another UI framework. In that sense, I wish SwiftUI had a different name because it seems intrinsic to Swift when it’s really no different than UIKit.
There’s stuff like SwiftCrossUI that does multiple backend bindings
https://github.com/stackotter/swift-cross-ui
And Qt was exploring some bindings using the new C++ interoperability.
- Ask HN: Why aren't text editors using Swift as an extension language?
- SwiftCrossUI: A cross-platform declarative UI framework, inspired by SwiftUI
-
Swift Static Linux SDK
https://github.com/stackotter/swift-cross-ui (Linux + Windows)
-
Writing Gnome Apps with Swift
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
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
What are some alternatives?
Edge.js - Run .NET and Node.js code in-process on Windows, MacOS, and Linux
Tokamak - SwiftUI-compatible framework for building browser apps with WebAssembly and native apps for other platforms
neon - Rust bindings for writing safe and fast native Node.js modules.
adwaita-swift - This project has moved to https://git.aparoksha.dev/aparoksha/adwaita-swift - A framework for creating user interfaces for GNOME with an API similar to SwiftUI
napi-rs - A framework for building compiled Node.js add-ons in Rust via Node-API
OpenSwiftUI - WIP — OpenSwiftUI is an OpenSource implementation of Apple's SwiftUI DSL.