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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -