We have a Common Java Library for to be use in both Android and IOS .. In Android It Is common But When It Comes to IOS is there any way to use Java Library In my project.. Please help If you have any Ideas.
Asked
Active
Viewed 2,452 times
2 Answers
2
You can try using Google's tool J2ObjC. Basically it translates Java to iOS Objective-C.

Enrique Bermúdez
- 1,740
- 2
- 11
- 25
-
But if do that .. do I Have to use Obj-C Bridge Header to use in Swift? – Feb 27 '18 at 20:59
-
Yes, if you translates your Java library to Objective-C, you will need to use the Obj-C Bridge Header to use it in Swift. – Enrique Bermúdez Feb 27 '18 at 21:01
1
You cannot use a java library in a swift application, but you can use a java to swift converter to convert your java library to a swift library.