To run the example project, clone the repo, and run pod install
from the Example directory first.
1-Go to Pods
2-Select Target CallingCodesKit
3-Click on build Phase
4-Click on Copy Bundel Resources
5-click on + Button
6- In CallingCodesKit Section You can find out Resources folder
7- Select CountryCallingCode.json
8-click add
for more Details please See the video in Usage Section
CallingCodesKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'CallingCodesKit'
import CallingCodesKit
class ViewController: UIViewController, callingCodeData
{
@IBOutlet weak var textLabel : UILabel!
func countryCodeAndFlag(name: String, flag: String, code: String, dialCode: String) {
textLabel.text = "\(flag) \(name) \(dialCode)"
}
@objc func callingCodeVC(){
let vc = CallingCodesVC()
vc.delegate = self
navigationController?.pushViewController(vc, animated: true)
}
override func viewDidLoad() {
super.viewDidLoad()
let tap = UITapGestureRecognizer(target: self, action: #selector(callingCodeVC))
textLabel.addGestureRecognizer(tap)
}
}
imranrasheeddeveloper, [email protected]
CallingCodesKit is available under the MIT license. See the LICENSE file for more info.