OpenSwiftUIProject / OpenSwiftUI

[WIP] Open source implementation of Apple's SwiftUI.
https://swiftpackageindex.com/OpenSwiftUIProject/OpenSwiftUI/main/documentation/openswiftui
MIT License
1.06k stars 29 forks source link

Add other backend UI framework on non-Darwin platform #1

Open Kyle-Ye opened 1 year ago

Kyle-Ye commented 1 year ago

Will work on this when basic UIView/NSView support is ready.

chawyehsu commented 8 months ago

I wonder if it's possible to use the WinUI infra as the backend on Windows platform.

Kyle-Ye commented 8 months ago

I wonder if it's possible to use the WinUI infra as the backend on Windows platform.

Theoretically, it is possible. Recently, I have started to add some platform-related code (UIView/NSView) and rendering layer things.

If you are interested you are welcome to contribute platform code on the WinUI layer later.

Kyle-Ye commented 8 months ago

https://github.com/microsoft/WinObjC.git

There is a WinObjC project which provide UIKit compatible API on Windows too.

chawyehsu commented 8 months ago

IIUC that framework is basically obsolete, it's a pretty good reference though.

ethanc8 commented 3 months ago

I am working on GNUstep, which provides an almost complete Foundation implementation and a very mature but incomplete AppKit implementation in Objective-C. The issue is that Swift<->ObjC bridging is broken on Linux, and it will need a lot of fixes to the Swift compiler to fix that.

ethanc8 commented 3 months ago

GNUstep supports almost every platform -- X11 and Wayland on Linux, BSD, and probably any other Unix that's supported by LLVM, and also supports Windows.

Kyle-Ye commented 3 months ago

I am working on GNUstep, which provides an almost complete Foundation implementation and a very mature but incomplete AppKit implementation in Objective-C. The issue is that Swift<->ObjC bridging is broken on Linux, and it will need a lot of fixes to the Swift compiler to fix that.

Glad if you'd like to help replace the default CoreFoundation/Foundation/AppKit dependency with the your open source implementation.

CmST0us commented 3 months ago

Is it possible to use LVGL as backend ? https://github.com/lvgl/lvgl