- Made the forget password UI.
- Made login view. - Continue the flow from onboarding. - added the flow from login-> create account and forget password.
This commit is contained in:
@@ -60,6 +60,9 @@ class OnBoardVC: UIViewController {
|
||||
}
|
||||
|
||||
@IBAction func loginBtnTapped(_ sender: UIButton) {
|
||||
let sb = UIStoryboard(name: K.StoryBoard.authenticationSB, bundle: nil)
|
||||
let vc = sb.instantiateViewController(withIdentifier: K.StoryBoardID.Authentication.loginVC) as! LoginVC
|
||||
self.navigationController?.pushViewController(vc, animated: true)
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -29,36 +29,36 @@ class SplashVC: UIViewController {
|
||||
}
|
||||
|
||||
@IBAction func languageBtnTapped(_ sender: UIButton) {
|
||||
let sb = UIStoryboard(name: K.StoryBoard.authenticationSB, bundle: nil)
|
||||
let vc = sb.instantiateViewController(withIdentifier: K.StoryBoardID.Authentication.userIntrestVC) as! UserIntrestVC
|
||||
self.navigationController?.pushViewController(vc, animated: true)
|
||||
// switch sender{
|
||||
// case hindiBtn:
|
||||
// K.GVar.localized = K.LocalizedEnum.hindi
|
||||
// case englishBtn:
|
||||
// K.GVar.localized = K.LocalizedEnum.english
|
||||
// default:
|
||||
// K.GVar.localized = K.LocalizedEnum.english
|
||||
// }
|
||||
//
|
||||
// let sb = UIStoryboard(name: K.StoryBoard.main, bundle: nil)
|
||||
// let vc = sb.instantiateViewController(withIdentifier: K.StoryBoardID.OnBoarding.onBoardVC) as! OnBoardVC
|
||||
//
|
||||
// // Create a CATransition instance
|
||||
// let transition = CATransition()
|
||||
// transition.duration = 0.3 // Set the duration of the animation
|
||||
// transition.type = CATransitionType.fade // Set the type of animation to fade
|
||||
//
|
||||
// // Optionally, set other properties such as timing function, subtype, etc.
|
||||
// // transition.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut)
|
||||
// // transition.subtype = CATransitionSubtype.fromTop
|
||||
//
|
||||
// // Get the navigation controller
|
||||
// guard let navigationController = navigationController else { return }
|
||||
//
|
||||
// // Perform the push animation with the custom transition
|
||||
// navigationController.view.layer.add(transition, forKey: nil)
|
||||
// navigationController.pushViewController(vc, animated: false)
|
||||
// let sb = UIStoryboard(name: K.StoryBoard.authenticationSB, bundle: nil)
|
||||
// let vc = sb.instantiateViewController(withIdentifier: K.StoryBoardID.Authentication.loginVC) as! LoginVC
|
||||
// self.navigationController?.pushViewController(vc, animated: true)
|
||||
switch sender{
|
||||
case hindiBtn:
|
||||
K.GVar.localized = K.LocalizedEnum.hindi
|
||||
case englishBtn:
|
||||
K.GVar.localized = K.LocalizedEnum.english
|
||||
default:
|
||||
K.GVar.localized = K.LocalizedEnum.english
|
||||
}
|
||||
|
||||
let sb = UIStoryboard(name: K.StoryBoard.main, bundle: nil)
|
||||
let vc = sb.instantiateViewController(withIdentifier: K.StoryBoardID.OnBoarding.onBoardVC) as! OnBoardVC
|
||||
|
||||
// Create a CATransition instance
|
||||
let transition = CATransition()
|
||||
transition.duration = 0.3 // Set the duration of the animation
|
||||
transition.type = CATransitionType.fade // Set the type of animation to fade
|
||||
|
||||
// Optionally, set other properties such as timing function, subtype, etc.
|
||||
// transition.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut)
|
||||
// transition.subtype = CATransitionSubtype.fromTop
|
||||
|
||||
// Get the navigation controller
|
||||
guard let navigationController = navigationController else { return }
|
||||
|
||||
// Perform the push animation with the custom transition
|
||||
navigationController.view.layer.add(transition, forKey: nil)
|
||||
navigationController.pushViewController(vc, animated: false)
|
||||
}
|
||||
|
||||
func animateImageScale() {
|
||||
|
||||
Reference in New Issue
Block a user