I am trying added enough code and information that related this problem.
I want to use native Contact list to get phone numbers. So, i prefer to use "Contacts" framework which is supported iOS9 and above.
When i added these delegates method to my code. I am getting error from Swift header file(ProjectName-Swift.h file). I was googling but I did not find any solutions. I am prety sure, "Contacts" framework caused "import loop" problem. Anyone has any suggestons?
// Calling CNContactPickerViewController method
func clickedAdressBook() {
let contactPicker = CNContactPickerViewController()
contactPicker.delegate = self
self.present(contactPicker, animated: true, completion: nil)
}
// to handle ContactsDelegate delegate metods
extension MoneyTransferToGsmVC : ContactsDelegate {
}
To solve this problem, i created new protocol which extended from CNContactPickerDelegate. But it's not worked
import UIKit
import Foundation
import Contacts
import ContactsUI
protocol ContactsDelegate : CNContactPickerDelegate {
}
When i added above extension, i am getting below error.