1

I'm trying to use my Swift class into Objective-C code and I came across this answer to do so. However, after import MyModule-Swift.h, I'm getting compile error in MyModule-Swift.h:

No type or protocol named 'AVCapturePhotoCaptureDelegate'

Even though it contains @import AVFoundation; at the top. I'm clueless how to solve this. All I'm trying to do is to use one of the model class (written in Swift) in Objective-C.

MayaReo
  • 19
  • 7

1 Answers1

1

I think you are using .mm file.

Use .m instead.