0

I have developed an app in Swift for iOS and I would like to add an augmented reality feature using Vuforia for cloud recognition. Now I have two different apps, the main one in Swift and the AR app using Vuforia (C++). I would like to merge them and make the AR just an option in my main Swift app, that's it, in my main Swift app I would touch a button an open the AR scanning feature. How can this be done? Thanks in advance!

Valty
  • 1
  • 2

1 Answers1

1

You need to wrap your C++ library interface in an Objective-C++ interface which can then be accessed via swift.

See: Can I mix Swift with C++? Like the Objective - C .mm files

Community
  • 1
  • 1
learnvst
  • 15,455
  • 16
  • 74
  • 121