- 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:
2024-05-07 19:33:29 +05:30
parent 95ae60c464
commit 3c69db0032
33 changed files with 911 additions and 162 deletions

View File

@@ -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)