Live data from Hacker News

SwiftUI

developer.apple.com

71–80 of 394 posts

Re: SwiftUI

#71

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

That’d be standard swift type inference. The .color function takes a single unnammed parameter of type Color (or similar, idk exactly). Color.gray is a static constant value. So .color(Color.gray) can be simplified to .color(.gray)

Huh, that's actually a great way to do type inference. Swift seems like an excellent language.

Re: SwiftUI

#72
post #50

Earlier quoted context omitted.

https://developer.apple.com/download/

Thank you, but that's how far I got myself. It is telling me there are no downloads available at this time. I am asking, because I am still on 10.14.5 and I thought the Xcode 11 beta might only be available on the 10.15 beta.

Under Applications now: Xcode 11 beta

Re: SwiftUI

#73
post #26

I'd be curious to know how many React Native devs work on cross-platform apps. In casual conversation I've had it actually isn't that high, despite it being one of the central promises of RN. Given that SwiftUI has live reloading and a sensible template interface I could absolutely see it winning over some RN devs. There's something to be said (particularly with Apple) for using the native toolset rather than RN, Flu…

[deleted]

Re: SwiftUI

#75
post #50

Earlier quoted context omitted.

https://developer.apple.com/download/

Thank you, but that's how far I got myself. It is telling me there are no downloads available at this time. I am asking, because I am still on 10.14.5 and I thought the Xcode 11 beta might only be available on the 10.15 beta.

Check the “Applications” tab, the Xcode download is there (they redesigned the page, which makes it IMO worse). No idea if it runs on Mojave, but I would think so based on history.

Re: SwiftUI

#76
post #6

The question the whole web asks now: what does this mean for React Native devs

For the teams that would have gone native if it was easier/faster I imagine it does change the equation quite a bit. Makes me wonder how this changes things internally for mobile teams at Facebook as well.

For JS/web focused teams I don’t think it impacts much, just like I don’t think this impacts Ionic developers that much.

Re: SwiftUI

#77

Other than a few-hour intro seminar on building iOS apps, almost 10 years ago, I've never written anything in Swift. The announcements around it today got the biggest reactions from the crowd. Is is really great, blasé, or too early to tell?

It’s too early to tell, but it’s certainly very exciting.

Re: SwiftUI

#78
post #10
post #6

The question the whole web asks now: what does this mean for React Native devs

I bet it's going to stay relatively the same, for now. React Native still works across iOS and Android, which is one of the key features. SwiftUI is iOS only.

> SwiftUI is iOS only

It's also on macOS

Re: SwiftUI

#79

I’m one of the engineers that spearheaded this initiative inside of Apple. I just wanted to thank the HN community—I’ve been reading HN for 10 years now and it’s been formative in my development as a software engineer. If you’re at WWDC stop by the labs and say hi!

This is incredibly awesome! Did you get inspired by the web or by new frameworks like flutter?

This looks very similar to Flutter, I wouldn't be surprised if they took some ideas from that which is all well and good; UI construction needs a facelift.

Re: SwiftUI

#80

I’m one of the engineers that spearheaded this initiative inside of Apple. I just wanted to thank the HN community—I’ve been reading HN for 10 years now and it’s been formative in my development as a software engineer. If you’re at WWDC stop by the labs and say hi!

How would you compare this to React.js? In particular, how does SwiftUI approach the concepts that Redux solves [EDIT: in other words, state management]?

  @State var model = Themes.listModel
I haven't tried it out, but the above looks more like MobX:

  @observable model = new MyListModel();
Post reply on HN