From 64751d46eabbee5af3fe813930778406a5830c6a Mon Sep 17 00:00:00 2001 From: gme_2 Date: Thu, 31 Jan 2019 14:38:10 +0900 Subject: [PATCH] minor fix --- .../User Interface/View/SplashScreenViewController.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GMERemittance/Module/SplashScreen/User Interface/View/SplashScreenViewController.swift b/GMERemittance/Module/SplashScreen/User Interface/View/SplashScreenViewController.swift index 82814176..82e87124 100644 --- a/GMERemittance/Module/SplashScreen/User Interface/View/SplashScreenViewController.swift +++ b/GMERemittance/Module/SplashScreen/User Interface/View/SplashScreenViewController.swift @@ -137,7 +137,7 @@ class SplashScreenViewController: UIViewController { model.name = "english_language_text".localized() model.code = "en" - let mode2 = SendMoneyCountryViewModel() + let model2 = SendMoneyCountryViewModel() model2.name = "korean_language_text".localized() model2.code = "kr" @@ -174,6 +174,8 @@ class SplashScreenViewController: UIViewController { let model10 = SendMoneyCountryViewModel() model10.name = "mongolia_language_text".localized() model10.code = "mn" + + self.languages = [model, model2, model3, model4, model5, model6, model7, model8, model9, model10] } private func configureTimer() { @@ -257,7 +259,7 @@ class SplashScreenViewController: UIViewController { @objc func updateLanguage() { - self.changeText(text: self.languages.elementAt(index: self.languageIndex) ?? "") + self.changeText(text: self.languages.elementAt(index: self.languageIndex)?.name ?? "") if (self.languageIndex + 1) >= (self.languages.count) { self.languageIndex = 0 }else {