- Added send OTP api
- Added verify OTP api - Modified the flow - Made a authfunc to handle the type of user and the language selected - Added OTP fields combine logic. Also handled the otp blank checks. - Added API for intrestes get
This commit is contained in:
@@ -29,13 +29,18 @@ class SplashVC: UIViewController {
|
||||
}
|
||||
|
||||
@IBAction func languageBtnTapped(_ sender: UIButton) {
|
||||
let sb1 = UIStoryboard(name: K.StoryBoard.authenticationSB, bundle: nil)
|
||||
let vc1 = sb1.instantiateViewController(withIdentifier: K.StoryBoardID.Authentication.userIntrestVC) as! UserIntrestVC
|
||||
self.navigationController?.pushViewController(vc1, animated: true)
|
||||
|
||||
return
|
||||
switch sender{
|
||||
case hindiBtn:
|
||||
K.GVar.localized = K.LocalizedEnum.hindi
|
||||
AuthFunc.shareInstance.languageSelected = .hindi
|
||||
case englishBtn:
|
||||
K.GVar.localized = K.LocalizedEnum.english
|
||||
AuthFunc.shareInstance.languageSelected = .english
|
||||
default:
|
||||
K.GVar.localized = K.LocalizedEnum.english
|
||||
AuthFunc.shareInstance.languageSelected = .english
|
||||
}
|
||||
|
||||
let sb = UIStoryboard(name: K.StoryBoard.main, bundle: nil)
|
||||
|
||||
Reference in New Issue
Block a user