News for hackers. Stuff that matters.
Re:SwiftUI by eugeniub on Monday June 03, 2019 @06:13PM (#20089479)
I'm having a hard time figuring out how this statement can be even remotely accurate.
Re:SwiftUI by charrondev on Monday June 03, 2019 @06:30PM (#20089619)
Whenever new frameworks or pieces of android come out, they are often accompanied by a compatibility library that you can ship in your app to use the new API and target older platform versions.
Re:SwiftUI by eugeniub on Tuesday June 04, 2019 @07:06PM (#20100095)
Ok, that's a fair point.
Re:SwiftUI by myko on Monday June 03, 2019 @09:56PM (#20091038)
Do you develop Android apps?

Google also announced a declarative UI framework. It's in the early stages and is open source. Android is on 9.x but that framework will run on much older versions of Android.

Meanwhile iOS 12 might be on 85% of iOS devices but it wont ever see SwiftUI.

Re:SwiftUI by yoz-y on Tuesday June 04, 2019 @01:05AM (#20092083)
Vast majority of the people with iOS12 will update. Also, at least on the announcement page, there seems to be no mention of iOS13 required for running apps using SwiftUI. Up until Swift 5 the whole runtime library needed to be shipped with the app and it is quite possible that a SwiftUI library could be shipped and run on iOS12.

Edit: On Apple developer forums I've read that the library is annotated with iOS13 requirement.

Re:SwiftUI by myko on Tuesday June 04, 2019 @07:38PM (#20100244)
The vast majority of folks will update right away.

Not enough to convince my stakeholders that we don't need to support at least one major version back.

I'll probably fight that harder this year than in previous years - SwiftUI looks incredible and any AutoLayout code already feels like legacy.

Re:SwiftUI by yoz-y on Thursday June 06, 2019 @08:31AM (#20113874)
Yeah, I agree that Apple should have added at least one version worth of backwards compatibility if they want to see quick adoption. I suppose one could hide the whole view in defines and lug two implementations but that is not much better than waiting for one year.
Re:SwiftUI by eugeniub on Tuesday June 04, 2019 @07:09PM (#20100108)
What UI framework are you talking about? Flutter?
Re:SwiftUI by myko on Tuesday June 04, 2019 @07:37PM (#20100234)
Re:SwiftUI by antfarm on Tuesday June 04, 2019 @01:32AM (#20092192)
It will not be on 85% of iOS devices once iOS 13 is available.
Re:SwiftUI by myko on Wednesday June 05, 2019 @08:36PM (#20110485)
Sure, but my company (and I assume most) will maintain support for at least the last two major versions of iOS. We wont be able to be minimum iOS 13 until ~September 2020 at the earliest, probably not until early 2021.

I understand why, I just wish they could release this open source like Jetpack Compose. Would've been a great way to introduce SPM to Xcode and iOS as well.

Re:SwiftUI by dep_b on Wednesday June 05, 2019 @12:41PM (#20106250)
> I'm having a hard time figuring out how this statement can be even remotely accurate.

I'm not even an Android developer and I already know that tons of Android libraries get back ported to older Android versions. They have to. Nobody runs the latest Android.

It's a bit shocking to get downvoted for a statement that's undeniably true.