0

I have a Swift project, and I successfully added some Objective C class files into this Swift project and able to use it in the project, using bridging header.

Now in these Objective C classes, I want to import a Swift class. How can I do this?

I've searched a lot but not found any answers for this yet. Most answered questions are about how to import Objective-C class into Swift project, or import Swift class into Objective-C project. But my case is different

kenvu
  • 343
  • 6
  • 18
  • I've searched a lot but not found any answers for this yet. Most answered questions are about how to import Objective-C class into Swift project, or import Swift class into Objective-C project. But my case is different – kenvu Nov 12 '16 at 08:58
  • If importing a swift class into an Objective-C *file* is somehow different to importing it into an Objective-C *project*, you need to explain how it's different and not answered by the marked duplicate. – Ganesh Sittampalam Nov 12 '16 at 11:31
  • I have a swift project and I already imported obj-c classes, let say testClass.h & testClass.m, to use in the project. Now in testClass.m, I want to import a swift class, let say mySwiftClass.swift into .m file to use. How can I do that? – kenvu Nov 13 '16 at 01:10

0 Answers0