4 ms·
Swift can interop with Objective C code, no? It is a bit of a cheat since it's not Swift native, but should work in all environments Swift runs on.
by untog 9y ago
Swift can interop with Objective C code, no? It is a bit of a cheat since it's not Swift native, but should work in all environments Swift runs on.
- RyanZAG 9y agoWithout native bindings, you'd still need to write all the UI code in C, and then you could use Swift interop to call your C function that does the layout. That's not what most would think of as Swift support if you're writing C.
- saagarjha 9y agoYes, but not C++ code. Also, many environments, such as Linux, don't support the Objective-C runtime at all.
- idea4good 9y agoSwift call C++ code with Bridge Java call C++ code with JNI You can get more details here: https://github.com/idea4good/GuiLitesamples https://github.com/idea4good/GuiLitesamples