Doesn't show contacts with custom labels
Opened this issue ยท 7 comments
If the contact has a custom label for its phone number, it does not show this contacts phone number, is there a way to fix this?
Actually a weird bug, it doesn't show contacts with just the "phone" label. Anyone else notice this?
Yes
Does anyone know how to fix this?
Yea I'll post my solution later today @suyashb734
In EPContact in the init function around line 51:
Replace:
guard let phoneLabel = phoneNumber.label else { continue }
With:
var phoneLabel = "phone"
if let label = phoneNumber.label {
phoneLabel = label
}
@andrewfashion hey, can you please update the pod as well with this solution, so that we do not have to push the pod library in our project.
@ipraba Kindly update the pod with the solution above or below:
Replace the following code in init
of class EPContact
:
guard let phoneLabel = phoneNumber.label else { continue }
to
let phoneLabel = phoneNumber.label ?? "Phone"