Legoless / LegoCV

Native OpenCV Swift Framework
https://github.com/legoless/legocv
Other
190 stars 27 forks source link

Where is the bridging header? #9

Open mahdidham opened 6 years ago

mahdidham commented 6 years ago

it's weird but how to connect objc to swift wothout bridging header? Any clue?

anonym24 commented 6 years ago

what do you mean without header? it's not possible without .h file

to call objc functions from swift you need .h and .mm files..

mahdidham commented 6 years ago

I mean there is no header file (objective-c Bridging header) to mix both swift and obcj. see Mix and Match Documentation

anonym24 commented 6 years ago

this project will not work anyway, try to google different (how to connect opencv), and you have to use opencv functions in objective-c class, those swift wrappers won't work anyway, so you can write opencv code in c++ using .mm class (ojective-c++) and using header to call functions from swift