News for hackers. Stuff that matters.
Re:Static Types in SwiftUI by cerberusss on Tuesday November 05, 2019 @06:36PM (#21458082)
> Anyone who has managed to figure out anything substantial about SwiftUI has done so purely through a labor of love.

There are lots of apps which are simply specialized CRUD apps. Personally, I love building them. The current state of SwiftUI is sufficiently developed for this kind of app.

Re:Static Types in SwiftUI by Razengan on Tuesday November 05, 2019 @07:06PM (#21458356)
I also see great potential in it for game UIs. Scalable UI with crisp text and vector shapes has generally been a pain [for me] in gamedev with other frameworks.

Best of all I generally have to write most game UI views just once for iOS/macOS (because they won't use native widgets anyway) with a few #if differences.

Re:Static Types in SwiftUI by cerberusss on Wednesday November 06, 2019 @02:13AM (#21460390)
I hadn't realized that SwiftUI could play a role here. Sounds hugely interesting! Best of luck!
Re:Static Types in SwiftUI by Razengan on Wednesday November 06, 2019 @06:32AM (#21461524)
Self-plug: My pet project's an open source game engine [0] that lets you use SwiftUI over SpriteKit/Metal views. Once I figure out how to write custom DSLs in Swift, I hope to have an API for describing game scene entities and their components in a SwiftUI-like declarative syntax, or maybe just make them all behave like SwiftUI views + view modifiers.

You'd also be able to use mostly the same code (even for touch and mouse input) on both iOS/macOS without needing to use Catalyst (which brings bugs of its own) :)

[0] https://github.com/InvadingOctopus/octopuskit