|
|
@ -57,9 +57,7 @@ class AboutGMEViewController: UIViewController { |
|
|
|
self.versionLabel.text = Utility.getAppVersion() |
|
|
|
configureLanguage() |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override func viewWillAppear(_ animated: Bool) { |
|
|
|
super.viewWillAppear(animated) |
|
|
|
self.setupNormalNavigation() |
|
|
@ -88,7 +86,14 @@ class AboutGMEViewController: UIViewController { |
|
|
|
} |
|
|
|
|
|
|
|
@IBAction func openFacebook(_ sender: Any) { |
|
|
|
guard let nativeCountry = UserDefaults.standard.string(forKey: AppConstants.firstTimeLanguageIsSet) else {return} |
|
|
|
// Based on selected Language |
|
|
|
// guard let nativeCountry = UserDefaults.standard.string(forKey: AppConstants.firstTimeLanguageIsSet) else {return} |
|
|
|
// |
|
|
|
// Based on native country |
|
|
|
guard let nativeCountry = UserDefaults.standard.string(forKey: UserKeys.countryCode)?.lowercased() else { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
UIApplication.tryURL(url: self.FacebookUrls[nativeCountry.lowercased()] ?? "https://www.facebook.com/gmenepal/") |
|
|
|
} |
|
|
|
|
|
|
|