Live data from Hacker News

The Swift SDK for Android

swift.org

21–30 of 298 posts

Re: The Swift SDK for Android

#21
post #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

Yeah I would also like to see SwiftUI but its apple ecosystem only.

Re: The Swift SDK for Android

#22

Earlier quoted context omitted.

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?

I assume all the extra work you have to do to make it work instead of using the native language.

If the project is simple to port over then it should have just been a website.

Re: The Swift SDK for Android

#23
post #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

Metal cannot be used on Android. Your business logic can be ported - if it's separated as a library. If you don't want to separate it, Skip can handle bridging a lot of Apple libraries including SwiftUI.

Re: The Swift SDK for Android

#24

Why cant everyone just get along and allow for KMP to work all within Android Studio instead of XCode. I'm working with this stuff everyday and that is by far my biggest headache.

Same reason everyone doesn't use Xamarin. Everyone has their own multiplatform framework solution.

Re: The Swift SDK for Android

#25
post #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

Metal cannot be used on Android. Your business logic can be ported - if it's separated as a library. If you don't want to separate it, Skip can handle bridging a lot of Apple libraries including SwiftUI.

Thanks - I see, so swift packages for everything.

What would be the equivalent shader / GPU language on Android? OpenGL?

Re: The Swift SDK for Android

#26
post #25

Earlier quoted context omitted.

Metal cannot be used on Android. Your business logic can be ported - if it's separated as a library. If you don't want to separate it, Skip can handle bridging a lot of Apple libraries including SwiftUI.

Thanks - I see, so swift packages for everything. What would be the equivalent shader / GPU language on Android? OpenGL?

Vulkan with glsl to spirv compiler would be equivalent

Re: The Swift SDK for Android

#27
post #25

Earlier quoted context omitted.

Metal cannot be used on Android. Your business logic can be ported - if it's separated as a library. If you don't want to separate it, Skip can handle bridging a lot of Apple libraries including SwiftUI.

Thanks - I see, so swift packages for everything. What would be the equivalent shader / GPU language on Android? OpenGL?

OpenGL or Vulkan, you might be able to have some luck transpiling metal shaders to spirv-cross at a cursory look

Re: The Swift SDK for Android

#28

Earlier quoted context omitted.

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?

The npm ecosystem is one of the worst and most backwards places to be, so I don't think so.

Re: The Swift SDK for Android

#29

Does this project tie in to the SKIP transpiler? https://skip.tools/blog/bringing-swift-to-android/ I have an existing Swift / SwiftUI app that I am looking to port to Android, and have been not wanting to move to React Native.

Yes, Skip is a major contributor to this effort!

Re: The Swift SDK for Android

#30
post #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

It'll take you thirty minutes to port the shaders with a modern LLM.

I am not joking. I have done this. Shaders are pretty simple. You'll have some weird artifacts but thats more because of platform differences than translation errors.

Post reply on HN