In a Project having already ObjC, I'm adding a Swift Class
import AddressBookUI
class MyVC : UITableViewController, ABPeoplePickerNavigationControllerDelegate {
}
MyApp-Swift.h:289:42: Cannot find protocol declaration for 'ABPeoplePickerNavigationControllerDelegate'; did you mean 'UINavigationControllerDelegate'?
No, Swift, I really mean ABPeoplePickerNavigationControllerDelegate
. Really wondering what I am doing wrong here...
FWIW, the reason this works with ABRecord
in pure Swift, but not in the Objective-C compatibility header is that there is a typealias
which the latter apparently doesn't translate back correctly:
typealias ABRecordRef = ABRecord
Might be worth filing a Radar 📡