How does Qt call Swift code?
-
Hi,
Qt does not. The Apple related backends are using Objective-C/C++.
What do you want to do ?
-
Hi,
Qt does not. The Apple related backends are using Objective-C/C++.
What do you want to do ?
-
@senmx said in How does Qt call Swift code?:
it would be great if it could be called.
It can. But you must write your own wrapper: https://github.com/dredwardhyde/swift-cpp-wrapper-example#how-to-call-swift-from-c-plain-closure-without-context
-
It's nothing like Swift but then again, Qt has existed for a long time. It's never going to be as clean as UIKit or SwiftUI.
-
@senmx said in How does Qt call Swift code?:
it would be great if it could be called.
It can. But you must write your own wrapper: https://github.com/dredwardhyde/swift-cpp-wrapper-example#how-to-call-swift-from-c-plain-closure-without-context
-
It's nothing like Swift but then again, Qt has existed for a long time. It's never going to be as clean as UIKit or SwiftUI.
@kameshbhai32 Thank you.