.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)
SwiftUI
71–80 of 394 posts
Re: SwiftUI
#72Earlier 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.
Re: SwiftUI
#73I'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…
Re: SwiftUI
#74Re: SwiftUI
#75Earlier 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.
Re: SwiftUI
#76The question the whole web asks now: what does this mean for React Native devs
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
#77Other 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?
Re: SwiftUI
#78Re: SwiftUI
#79I’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?
Re: SwiftUI
#80I’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();