I know how to include and build objective-c
sources in my QtApplication
. Generally MyQtApplication.pro
file includes objective-c source .mm
files like this which does the trick and its quite easy.
# MyQtApplication.pro
ios {
CONFIG += objective_c
OBJECTIVE_SOURCES += SomeObjectiveCSource.mm
HEADERS += SomeObjectiveCSource.hpp
}
Question:
Is there way to include .swift
files as well? And hence include, build and call Swift code from C++ classes in a QtApplication? Does Qt officially support it now? Is there a concrete example I can look into?
I did look into this discussion. But I am looking for a concrete example.
Or, calling an API in .swift
file from a .mm file which acts as a bridge inside my Qt Application? I am looking for concrete example if this is possible.