From 434f76013e6e06a0e5f44dcc8634b4fbe6c894da Mon Sep 17 00:00:00 2001 From: Amrit Giri Date: Tue, 10 Nov 2020 13:34:55 +0545 Subject: [PATCH] issue fixed --- GME Remit/APIs/Router/APIRouter.swift | 2 +- GME Remit/AppDelegate.swift | 3 + .../View/LoginViewController.swift | 4 +- .../View/ExistingUserKyc.storyboard | 92 +++++++--------- .../View/ExistingUserKycViewController.swift | 4 +- .../View/KYCVerifyStep1.storyboard | 104 ++++++++---------- .../View/KYCVerifyStep1ViewController.swift | 4 +- .../View/NewRegister.storyboard | 6 +- .../View/VerifyIDNumberViewController.swift | 2 +- 9 files changed, 102 insertions(+), 119 deletions(-) diff --git a/GME Remit/APIs/Router/APIRouter.swift b/GME Remit/APIs/Router/APIRouter.swift index c864b269..5e6a6dea 100644 --- a/GME Remit/APIs/Router/APIRouter.swift +++ b/GME Remit/APIs/Router/APIRouter.swift @@ -507,7 +507,7 @@ extension APIRouter { case .oldUserRegister: return "\(baseUrlWithoutVersion)v1/mobile/oldUserRegister" case .verifyIdNumber: - return "\(baseUrlWithoutVersion)v3/mobile/verifyIdNumber" + return "\(baseUrlWithoutVersion)v3/validation" case .newUserRegister: return "\(baseUrlWithoutVersion)v1/mobile/newUserRegister" } diff --git a/GME Remit/AppDelegate.swift b/GME Remit/AppDelegate.swift index 07e257cc..3f823b77 100644 --- a/GME Remit/AppDelegate.swift +++ b/GME Remit/AppDelegate.swift @@ -89,6 +89,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate { let useInfo = launchOptions?[.remoteNotification] as? [String: AnyObject] destination = extractDestination(userInfo: useInfo) self.window?.rootViewController = LauncherScreenWireframe().getMainView() + if #available(iOS 13.0, *) { + window?.overrideUserInterfaceStyle = .light + } GMEDB .shared diff --git a/GME Remit/Modules/Login/User Interface/View/LoginViewController.swift b/GME Remit/Modules/Login/User Interface/View/LoginViewController.swift index 03c4dfee..319f0612 100644 --- a/GME Remit/Modules/Login/User Interface/View/LoginViewController.swift +++ b/GME Remit/Modules/Login/User Interface/View/LoginViewController.swift @@ -142,10 +142,10 @@ class LoginViewController: UIViewController { passwordTextField.delegate = self userNameTextField.returnKeyType = .next - userNameTextField.validCondition = { $0.count > 3 } + userNameTextField.validCondition = { !$0.isEmpty } userNameTextField.addTarget(self, action: #selector(editingChanged(_:)), for: .editingChanged) - passwordTextField.validCondition = { $0.count > 5 } + passwordTextField.validCondition = { !$0.isEmpty } passwordTextField.errorMessage = "password_empty_error".localized() passwordTextField.isSecureTextEntry = true passwordTextField.addTarget(self, action: #selector(editingChanged(_:)), for: .editingChanged) diff --git a/GME Remit/Modules/RegisterModules/UserAuthentication/ExistingUserKyc/User Interface/View/ExistingUserKyc.storyboard b/GME Remit/Modules/RegisterModules/UserAuthentication/ExistingUserKyc/User Interface/View/ExistingUserKyc.storyboard index b372b6e2..d9f3659f 100644 --- a/GME Remit/Modules/RegisterModules/UserAuthentication/ExistingUserKyc/User Interface/View/ExistingUserKyc.storyboard +++ b/GME Remit/Modules/RegisterModules/UserAuthentication/ExistingUserKyc/User Interface/View/ExistingUserKyc.storyboard @@ -1,9 +1,9 @@ - + - + @@ -290,9 +290,9 @@ - - - + + - - - - + + + +