It's interesting swift-cross-ui looks very promising.
I'm specifically interested in the implementation on WinUI3. I compile and run this example on Windows 11 ARM VM via Parallels Desktop and I notice a problem with the positioning of controls in the window.
Very strange, I'll look into that tomorrow! Just so I have enough context, is that window resizable at all? If so does the layout jump at all if you try to resize the window?
Yes, this is what happens. When the window is resizable, the content constantly jumps when resizing and cannot be fully viewed. This behavior is the same for all examples.
Sorry for the delay @Datagram. I just pushed some changes that fix WinUIBackend's support for display scaling (window sizing used to break when display scaling was anything other than 100%). I haven't tested the changes on Windows 11 yet, but I believe they should fix some of the issues that you faced. You will likely still experience jumpy resizing when resizing the window smaller than its content (gonna address that next), but fixed-size windows should work at least.
Hi stackotter I'm experiencing the same issue when running the examples on Windows 11 ARM. The window contents are only partially displayed. Its easy to reproduce, just setup Windows 11 with Parallels Desktop on any Apple silicon Mac.
I'm also experiencing a new problem building the examples with Swift 6.1 (or the latest 6.2), the following error appears:
lld-link: error: too many exported symbols (got 67393, max 65535)
Seems a DLL exports too many symbols.
Note that this lld-link error only appears in debug mode using Swift 6.1 or the latest on Windows ARM. The lld-link error doesn't appear when building in release mode.
Not sure whether you’re the one who posted the issue on the SwiftCrossUI repo, but this general Windows DLL issue should be resolved if you use the latest commit.