Live data from Hacker News

SwiftUI

developer.apple.com

51–60 of 394 posts

Re: SwiftUI

#54
post #47
post #19

Earlier quoted context omitted.

Jetpack Composer you mean. I bet by next IO, Flutter will get replaced by it, specially after the #KotlinEverywhere announcement and Kotlin/Native effort for iOS.

Flutter is cross platform. I looked for it but didn't see where jetpack has this capability. Please post me a link if I’m wrong, I would follow this project if it does support cross platform development.

Jetpack Compose was announced at IO: https://blog.karumi.com/android-jetpack-compose-review/

Re: SwiftUI

#55
post #7

Personally, as an iOS developer, this is by far the biggest announcement. Haven’t had the chance to dig deeper, but the comparison between the UITableViewController and that snippet containing just declarative code looks absolutely promising. The only downside is that we’ll have to wait one or two years before we can use it if older iOS versions still need to be supported. Let’s hope for extra quick adoption of iOS 1…

Do you have a link to the comparison?

It was during the event, they just displayed an overly dramatic LOC comparison on the screen between a few page-downs on a longer Swift file, then the next screen showed a ~10 line block of code which does the same thing. Followed by the standard audience applause.

The livestream hasn't been uploaded yet but I'm sure you could find it in one of the live blogs.

Re: SwiftUI

#58

.color(.gray)) What object is .gray acting on?

that's shortcut syntax for an enumeration case where the type of the enumeration can be inferred

It's not just for enums. It works for any static variable on a given type. So you can say .gray and have it map to NSColor.gray, etc.

Re: SwiftUI

#60
post #34

I was fully expecting something along the lines of "Oh, and SwiftUI will compile to WebAssembly allowing your apps to look just as awesome and run just as fast in Safari." Probably still in alpha...

Why would Apple want these apps to run in Safari? They have a platform to run these already.
Post reply on HN