From e32ff2a1c74d30a76b1d7b2c48543b59ff861258 Mon Sep 17 00:00:00 2001 From: Jett Farmer Date: Thu, 20 Oct 2016 18:05:49 -0700 Subject: [PATCH] Made `contactDelegate` weak. --- Pods/EPContactsPicker.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pods/EPContactsPicker.swift b/Pods/EPContactsPicker.swift index d72678c..8e13a48 100644 --- a/Pods/EPContactsPicker.swift +++ b/Pods/EPContactsPicker.swift @@ -10,7 +10,7 @@ import UIKit import Contacts -public protocol EPPickerDelegate { +public protocol EPPickerDelegate: class { func epContactPicker(_: EPContactsPicker, didContactFetchFailed error: NSError) func epContactPicker(_: EPContactsPicker, didCancel error: NSError) func epContactPicker(_: EPContactsPicker, didSelectContact contact: EPContact) @@ -37,7 +37,7 @@ open class EPContactsPicker: UITableViewController, UISearchResultsUpdating, UIS // MARK: - Properties - open var contactDelegate: EPPickerDelegate? + open weak var contactDelegate: EPPickerDelegate? var contactsStore: CNContactStore? var resultSearchController = UISearchController() var orderedContacts = [String: [CNContact]]() //Contacts ordered in dicitonary alphabetically