- 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

@@ -23,16 +23,16 @@ class SelectAgeVM{
let tapGesture2 = UITapGestureRecognizer(target: self, action: #selector(adult))
vc.aboveAgeView.addGestureRecognizer(tapGesture2)
vc.privacyLabel.text = "We Value Your Privacy".localized(loc: K.GVar.localized)
vc.magicNoLabel.text = "16 IS THE MAGIC NUMBER".localized(loc: K.GVar.localized)
vc.yearsLabel.text = "YEARS".localized(loc: K.GVar.localized)
vc.iAmAboveLabel.text = "I AM".localized(loc: K.GVar.localized)
vc.iAmUnderLabel.text = "I AM".localized(loc: K.GVar.localized)
vc.underLabel.text = "UNDER".localized(loc: K.GVar.localized)
vc.aboveLabel.text = "ABOVE".localized(loc: K.GVar.localized)
vc.numberText.text = "16".localized(loc: K.GVar.localized)
vc.underTextLabel.text = "We will need your parents email so they can verify and agree to create an account.".localized(loc: K.GVar.localized)
vc.aboveTextLabel.text = "Above 16 users will be registered as a guardian with additional content.".localized(loc: K.GVar.localized)
vc.privacyLabel.text = "We Value Your Privacy".localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
vc.magicNoLabel.text = "16 IS THE MAGIC NUMBER".localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
vc.yearsLabel.text = "YEARS".localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
vc.iAmAboveLabel.text = "I AM".localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
vc.iAmUnderLabel.text = "I AM".localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
vc.underLabel.text = "UNDER".localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
vc.aboveLabel.text = "ABOVE".localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
vc.numberText.text = "16".localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
vc.underTextLabel.text = "We will need your parents email so they can verify and agree to create an account.".localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
vc.aboveTextLabel.text = "Above 16 users will be registered as a guardian with additional content.".localized(loc: AuthFunc.shareInstance.languageSelected.rawValue)
self.vc.wokaLogoTopSpacing.constant = CheckPhoneHomeBtnOrNotch.shareInstance.topConstriant()
}