objective c - Bridging swift code into obj c project -
i added swift bridge , changed proper settings allow swift in objc project. big issue swift3 code trying bridge coming errors in project shows has no members, no types etc.. along parse giving off errors , not wanting work.. don't know if foundation of project if old , can't project 2 years old or what...
here of errors see , hoping pointed in correct direction.
tltr- of big issues i'm facing see type 'uiapplication' has no member 'shared' , use of unresolved identifier 'parse' along value of type 'uiimage' has no member 'draw'
you need import projectname-swift.h. note it's project name - other answers make mistake of using class name.
this single file autogenerated header defines objective-c interfaces swift classes in project either annotated @objc or inherit nsobject.
if project name contain spaces, replace them underscores (e.g. "my project" becomes "my_project-swift.h")
Comments
Post a Comment