|
@ -15,11 +15,11 @@ import DTTJailbreakDetection |
|
|
class SplashScreenViewController: UIViewController { |
|
|
class SplashScreenViewController: UIViewController { |
|
|
|
|
|
|
|
|
struct StringConstants { |
|
|
struct StringConstants { |
|
|
let descriptionFirst = "hassle_free_transfer_text".localized() |
|
|
|
|
|
let descriptionSecond = "connect_local_community_text".localized() |
|
|
|
|
|
let descriptionThird = "earn_reward_point_text".localized() |
|
|
|
|
|
let loginText = "login_text".localized() |
|
|
|
|
|
let newUserText = "new_user_text".localized() |
|
|
|
|
|
|
|
|
let descriptionFirst = "hassle_free_transfer_text".localized() |
|
|
|
|
|
let descriptionSecond = "connect_local_community_text".localized() |
|
|
|
|
|
let descriptionThird = "earn_reward_point_text".localized() |
|
|
|
|
|
let loginText = "login_text".localized() |
|
|
|
|
|
let newUserText = "new_user_text".localized() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// MARK: IBOutlets |
|
|
// MARK: IBOutlets |
|
@ -64,26 +64,30 @@ class SplashScreenViewController: UIViewController { |
|
|
Localize.setCurrentLanguage("si") |
|
|
Localize.setCurrentLanguage("si") |
|
|
}else |
|
|
}else |
|
|
|
|
|
|
|
|
if code == "kh" { |
|
|
|
|
|
Localize.setCurrentLanguage("km") |
|
|
|
|
|
}else |
|
|
|
|
|
|
|
|
if code == "kh" { |
|
|
|
|
|
Localize.setCurrentLanguage("km") |
|
|
|
|
|
}else |
|
|
|
|
|
|
|
|
if code == "kr" { |
|
|
|
|
|
Localize.setCurrentLanguage("ko") |
|
|
|
|
|
}else |
|
|
|
|
|
|
|
|
if code == "kr" { |
|
|
|
|
|
Localize.setCurrentLanguage("ko") |
|
|
|
|
|
}else |
|
|
|
|
|
|
|
|
if code == "mm" { |
|
|
|
|
|
Localize.setCurrentLanguage("my") |
|
|
|
|
|
}else |
|
|
|
|
|
|
|
|
if code == "mm" { |
|
|
|
|
|
Localize.setCurrentLanguage("my") |
|
|
|
|
|
}else |
|
|
|
|
|
|
|
|
if code == "bd" { |
|
|
|
|
|
Localize.setCurrentLanguage("bn") |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
if code == "bd" { |
|
|
|
|
|
Localize.setCurrentLanguage("bn") |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
if code == "np" { |
|
|
|
|
|
Localize.setCurrentLanguage("ne") |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if code == "np" { |
|
|
|
|
|
Localize.setCurrentLanguage("ne") |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if code == "ru" { |
|
|
|
|
|
Localize.setCurrentLanguage("ru-RU") |
|
|
|
|
|
} |
|
|
else { |
|
|
else { |
|
|
Localize.setCurrentLanguage(code) |
|
|
Localize.setCurrentLanguage(code) |
|
|
} |
|
|
} |
|
@ -181,7 +185,7 @@ class SplashScreenViewController: UIViewController { |
|
|
setImageandLabels() |
|
|
setImageandLabels() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func setupLanguages() { |
|
|
|
|
|
|
|
|
func setupLanguages() { |
|
|
|
|
|
|
|
|
self.languages = Utility.getLanguages() |
|
|
self.languages = Utility.getLanguages() |
|
|
} |
|
|
} |
|
@ -258,7 +262,7 @@ class SplashScreenViewController: UIViewController { |
|
|
self.view.backgroundColor = AppConstants.themeRedColor |
|
|
self.view.backgroundColor = AppConstants.themeRedColor |
|
|
self.buttonSignUp.backgroundColor = AppConstants.themeDarkRedColor |
|
|
self.buttonSignUp.backgroundColor = AppConstants.themeDarkRedColor |
|
|
self.buttonLogin.backgroundColor = AppConstants.themeBlueColor |
|
|
self.buttonLogin.backgroundColor = AppConstants.themeBlueColor |
|
|
// self.buttonSignUp.backgroundColor = AppConstants.themeBlueColor |
|
|
|
|
|
|
|
|
// self.buttonSignUp.backgroundColor = AppConstants.themeBlueColor |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private func setupTimer() { |
|
|
private func setupTimer() { |
|
|