In my Swift project I use some C++ code, that use openCV framework. So I create Objective-C wrapper and it's works ok. Then I want to use some openCV functionality directly from swift. I add
#import <opencv2/opencv.hpp>
to "Bridging-Header.h" and get bunch of error "Core.hpp header must be compiled as C++" from C++ code. Is there any way to work with OpenCV in C++ code and in Swift code in the same project?