ios - Using Swift library in an Objective-C project -
i working in objective-c, ios project, used danielgindi charts library swift library. downloaded using cocoapods.
i trying import library files objective-c files using 'projectname-swift.h'
mentioned in this question faced error:
'projectname-swift.h' file not found
if have installed swift library using cocoapods
to import library in objective c code use in objective c
@import frameworkname;
in swift
@import frameworkname
Comments
Post a Comment