ios - How to use swift files in objective c -


i want use swift files in objective-c code. found different link how it.

my project name is: test-project.

i imported #import "test-project-swift.h" .m file use needed classed in objective c source code.

i watched video , there no problem, have 'test-project-swift.h' file not found.

as recognized: looks problem "-" need change "_" - "test_project-swift.h". i've checked objective-c generated interface header name in project settings.


Comments