Skip to content

Commit 1908cf5

Browse files
committed
move method to the right place
1 parent 7148765 commit 1908cf5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

MRCountryPicker/Classes/SwiftCountryPicker.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ open class MRCountryPicker: UIPickerView, UIPickerViewDelegate, UIPickerViewData
4949
super.delegate = self
5050
}
5151

52+
// MARK: - Locale Methods
53+
54+
open func setLocale(_ locale: String) {
55+
self.selectedLocale = Locale(identifier: locale)
56+
}
57+
5258
// MARK: - Country Methods
5359

5460
open func setCountry(_ code: String) {
@@ -66,10 +72,6 @@ open class MRCountryPicker: UIPickerView, UIPickerViewDelegate, UIPickerViewData
6672
countryPickerDelegate.countryPhoneCodePicker(self, didSelectCountryWithName: country.name!, countryCode: country.code!, phoneCode: country.phoneCode!, flag: country.flag!)
6773
}
6874
}
69-
70-
open func setLocale(_ locale: String) {
71-
self.selectedLocale = Locale(identifier: locale)
72-
}
7375

7476
open func setCountryByPhoneCode(_ phoneCode: String) {
7577
var row = 0

0 commit comments

Comments
 (0)