Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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


Sometimes it is easiest to have an agent like Codex rewrite the shader instead...


Vulkan with glsl to spirv compiler would be equivalent


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


https://skip.tools ported SwiftUI to Android.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: