PhoneNumberKit
PhoneNumberKit copied to clipboard
Is it possible to use this awesome lib in Objective-C project?
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!
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
It is easier to use https://github.com/iziz/libPhoneNumber-iOS on Objective-C. That also uses metadata from Google.
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.