swift-cross-ui icon indicating copy to clipboard operation
swift-cross-ui copied to clipboard

A cross-platform declarative UI framework, inspired by SwiftUI.

Results 32 swift-cross-ui issues
Sort by recently updated
recently updated
newest added
trafficstars

To copy the behaviour of SwiftUI (which I like in this case), we should only show a ScrollView's scrollbar is the ScrollView's content is actually big enough for scrolling to...

enhancement
AppKitBackend

VStack and HStack are the building blocks of basically all layouts, so it's very obvious when they don't have very sensible default layouts. I've run `GreetingGeneratorExample` with `SwiftCrossUI`'s `AppKitBackend`, and...

bug
AppKitBackend

The NSScrollView default background is different from the NSWindow default background and it looks kinda weird. As extra motivation, SwiftUI also gets rid of the scroll view background color.

AppKitBackend

Currently we directly convert from Int to Int32 or UInt32 and this conversion is not safe. We should instead make a safe conversion between what swift-cross-ui api asks and what...

enhancement
API

It's generally more swifty to use ranges where possible. In this case it'd be a `ClosedRange`.

enhancement
good first issue
API

In some circumstances (e.g. when switching out the contents of an article view with a new article) it makes sense for a scroll view to reset its scroll position to...

enhancement
API

`RandomNumberGeneratorExample` has a minimum slider and a maximum slider which are both from 0 to 100. In addition to their hard bounds (which don't change), there's an extra constraint that...

enhancement
good first issue
API

The `minimum` slider's value is forced to be less than the `maximum` slider's value, and the `maximum` slider's value is forced to be greater than the `minimum` slider's value. In...

bug
AppKitBackend

We'll need to figure out how to cascade styles through the AppKit view hierarchy. Similarly to what Lorenzo faced with WinUIBackend, this seems to be a little tricky since it's...

AppKitBackend

If you run `CounterExample` you'll see that the window content is in the top left corner of the window (if you resize the window to make it bigger), whereas it's...

GtkBackend