swift-cross-ui
swift-cross-ui copied to clipboard
A cross-platform declarative UI framework, inspired by SwiftUI.
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...
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...
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.
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...
It's generally more swifty to use ranges where possible. In this case it'd be a `ClosedRange`.
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...
`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...
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...
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...
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...