When calling Swift methods from Objective-C, #import Contacts.swift doesn’t work.
-
Leverage the autogenerated headers:
#import ProjectName-Swift.h -
Expose your Swift class properties and methods with
@objc -
Now you can access these Swift exposed elements from Obj-C .m files