Skip to content

Commit 2ce9fff

Browse files
author
Mojca Rojko
authored
Merge pull request #5 from useeless37/retaincycle
Use Weak delegate
2 parents 981b9c2 + caafdc6 commit 2ce9fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MRCountryPicker/Classes/SwiftCountryPicker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct Country {
2222
open class MRCountryPicker: UIPickerView, UIPickerViewDelegate, UIPickerViewDataSource {
2323

2424
var countries: [Country]!
25-
open var countryPickerDelegate: MRCountryPickerDelegate?
25+
open weak var countryPickerDelegate: MRCountryPickerDelegate?
2626
open var showPhoneNumbers: Bool = true
2727

2828
override init(frame: CGRect) {

0 commit comments

Comments
 (0)