PhoneNumberKit icon indicating copy to clipboard operation
PhoneNumberKit copied to clipboard

Is it possible to use this awesome lib in Objective-C project?

Open RockyLin opened this issue 2 years ago • 1 comments

Xcode 13 OS: BigSur

In ViewController.m @import PhoneNumberKit;

However, methods or fields of PhoneNumberKit cannot be accessed.

Is it possible to use this awesome lib in Objective-C project?

I'm new to swift, Please help!

RockyLin avatar Jul 07 '22 07:07 RockyLin

Hey @RockyLin , Unfortunately I don't have the exact guide, but I think you need to use some bridging headers. Maybe that guide helps: https://developer.apple.com/documentation/swift/importing-swift-into-objective-c

petermolnar-dev avatar Aug 29 '22 19:08 petermolnar-dev

It is easier to use https://github.com/iziz/libPhoneNumber-iOS on Objective-C. That also uses metadata from Google.

keremerkan avatar Oct 03 '22 06:10 keremerkan

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 03 '22 03:12 github-actions[bot]