Live data from Hacker News

The Swift SDK for Android

swift.org

11–20 of 298 posts

Re: The Swift SDK for Android

#11

What does this mean for React Native? Is Swift now going to be the de facto language for Mobile (and maybe Desktop) development?

Not a chance

React Native is popular because there’s a thousand times more React devs than native devs.

And people like to use what they know.

Also React dev experience makes anything Swift related look like stone age technology

Re: The Swift SDK for Android

#12
post #5
post #2

I'm just getting started in iOS development as a hobby, but what does this mean? Can I now build my app in Xcode with an Android target and use that binary in the Play Store? It surely can't be that easy now is it?

> Can I now build my app in Xcode with an Android target and use that binary in the Play Store? No. The vision document[1] lays out the direction of travel. Currently the focus is on shared business logic and libraries, rather than full native applications (although that's certainly a goal, albeit a very long term one). [1]: https://github.com/swiftlang/swift-evolution/pull/2946/files

What do you mean?

This doc you linked is from August.

The blog post from today includes, in fact at the very top an XCode Swift project emulating a Pixel 9.

The docs include a detailed Getting Started for Android and they even have an Android examples repo.

Hence the SDK.

By all means, it very much is possible to build Android Swift apps in XCode.

https://www.swift.org/documentation/articles/swift-sdk-for-a...

Re: The Swift SDK for Android

#13
post #2

I'm just getting started in iOS development as a hobby, but what does this mean? Can I now build my app in Xcode with an Android target and use that binary in the Play Store? It surely can't be that easy now is it?

The reverse is slowly becoming a possibility. Jet Brains just announced another improvement with Swift Export. https://kotlinlang.org/docs/native-swift-export.html

But it's not there yet

Re: The Swift SDK for Android

#15
I would love if I don't have to port my whole iOS app to Android manually. How exactly would this integration work if say business logic is handled by Swift - I'm guessing UI and SwiftUI would not be supported initially?

My app [0] uses a lot of metal shader code - I'm guessing there's no easy way to bring that across?

[0] https://apps.apple.com/app/apple-store/id1545223887

Re: The Swift SDK for Android

#17

What does this mean for React Native? Is Swift now going to be the de facto language for Mobile (and maybe Desktop) development?

Not a chance React Native is popular because there’s a thousand times more React devs than native devs. And people like to use what they know. Also React dev experience makes anything Swift related look like stone age technology

> Also React dev experience makes anything Swift related look like stone age technology

How so?

Re: The Swift SDK for Android

#18
post #5

Earlier quoted context omitted.

> Can I now build my app in Xcode with an Android target and use that binary in the Play Store? No. The vision document[1] lays out the direction of travel. Currently the focus is on shared business logic and libraries, rather than full native applications (although that's certainly a goal, albeit a very long term one). [1]: https://github.com/swiftlang/swift-evolution/pull/2946/files

What do you mean? This doc you linked is from August. The blog post from today includes, in fact at the very top an XCode Swift project emulating a Pixel 9. The docs include a detailed Getting Started for Android and they even have an Android examples repo. Hence the SDK. By all means, it very much is possible to build Android Swift apps in XCode. https://www.swift.org/documentation/articles/swift-sdk-for-a...

The post doesn't display Xcode but Android Studio. While with Skip you can build & run through Xcode, that's not something we support right now.

You can build the Swift part in Xcode, VSCode or your favorite editor. But the Android builds don't work with Xcode today.

Post reply on HN