Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java code to swift converter [closed]

Tags:

java

swift

I'm developing in swift for iOS and i would like to convert my Utils library in java to swift. Is there any online converter to convert simple java code into swift code?

like image 914
davidrelgr Avatar asked Jan 13 '15 11:01

davidrelgr


People also ask

Can I convert Java code to Swift?

This is basic tool which is capable to convert custom java code into equivalent in swift 4 code. This tool is support java 8 package, And convert into swift code with limited functionality. Such as String, Map, Set etc.

Can you convert python to Swift?

Peryton, named after the mythological deer that has the wings of a bird, is a Python to Swift Transpiler. It can accept native Python code, parse it, and translate that code to the equivalent code in swift. The major advantages of using Peryton are: You can write IOS/OS X applications use Python.


1 Answers

I don't know about a java to swift converter, however, Google developed a Java to objective-C converter, you can find it at https://github.com/google/j2objc

You can use objective c files together with swift files in one project. I think this is the only way to go.

like image 192
Simon Avatar answered Oct 05 '22 02:10

Simon