feat: Show country selection on first app start
This commit is contained in:
+7
@@ -45,6 +45,13 @@ class SeismicNetworksViewController: EQNBaseViewController, UITableViewDelegate,
|
||||
|
||||
setupUI()
|
||||
refreshUI()
|
||||
|
||||
// only the first time, show the popup for country selection
|
||||
let alreadyPresented = UserDefaults.standard.bool(forKey: EQNUserDefaultKeyOneShotShowCountry)
|
||||
if !alreadyPresented {
|
||||
performSegue(withIdentifier: Self.SegueIdentifierSettings, sender: nil)
|
||||
UserDefaults.standard.setValue(true, forKey: EQNUserDefaultKeyOneShotShowCountry)
|
||||
}
|
||||
}
|
||||
|
||||
private func setupUI() {
|
||||
|
||||
Reference in New Issue
Block a user