2 ms·
> "Just copy whatever Apple does" seems like the worst possible solution for a cross platform widget naming convention out of many possible bad solutions. The
by Razengan 7y ago
> "Just copy whatever Apple does" seems like the worst possible solution for a cross platform widget naming convention out of many possible bad solutions.
The suggestion wasn't about copying whatever Apple does.
It's that SwiftUI has the most simple syntax (that I've seen.)
ZStack() {
Rectangle()
.foregroundColor(.unicornPuke)
VStack() {
Text("Hello")
Text("World")
}
}
If you can make it nicer and more succinct than that, go for it!
But how is that the "worst possible solution?" What OS-specific bias do you see in that?
So maybe the specific constructs for specifying view modifiers and enums could be slightly different for each language, or the ()s might be []s, and maybe we could do away with the {}s.
It would just be a model for describing the UI, that a hypothetical engine backend might take and spit out OS-native widgets. For another OS, you'd plug in a different engine.