7 ms·
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
by lukko 11mo ago
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 https://apps.apple.com/app/apple-store/id1545223887
- hoppp 11mo agoYeah I would also like to see SwiftUI but its apple ecosystem only.
- wahnfrieden 11mo agohttps://skip.tools https://skip.tools ported SwiftUI to Android.
- joanniso 11mo agoMetal 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.
- lukko 11mo agoThanks - I see, so swift packages for everything. What would be the equivalent shader / GPU language on Android? OpenGL?
- rahkiin 11mo agoVulkan with glsl to spirv compiler would be equivalent
- thomspoon 11mo agoOpenGL or Vulkan, you might be able to have some luck transpiling metal shaders to spirv-cross at a cursory look
- wahnfrieden 11mo agoSometimes it is easiest to have an agent like Codex rewrite the shader instead...
- fooker 11mo agoIt'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.
- seivan 11mo ago[dead]