- handled theme 2 player pause while the radio is opened and closed

- Completed forget username flow with hindi language
- Completed app update functionality, need the api to be updated as the version will not be a double, its going to be string
This commit is contained in:
2024-08-20 19:50:11 +05:30
parent 9b9e95301e
commit 750cc59cde
23 changed files with 903 additions and 98 deletions

View File

@@ -79,29 +79,35 @@ class SplashVC: UIViewController {
If user is loggined no need to shift the woka logo upside to new constant.
Directly Navigate user to home
*/
if AuthFunc.shareInstance.checkLogin(){
vm.getUserData()
return
} else{
//check if the static url data is fetched
if AuthFunc.shareInstance.staticURLs == nil{
AuthFunc.shareInstance.getStaticURLs()
}
// vm.getVersionHistory()
animateForward()
}
}
func animateForward(){
if AuthFunc.shareInstance.checkLogin(){
vm.getUserData()
return
}else{
//check if the static url data is fetched
if AuthFunc.shareInstance.staticURLs == nil{
AuthFunc.shareInstance.getStaticURLs()
}
UIView.animate(withDuration: 0.5, animations: {
// Update the constant value of the top constraint
self.wokaOriginY.constant = newConstant
// Inform the layout system to update
self.view.layoutIfNeeded()
}) { _ in
if !AuthFunc.shareInstance.checkLogin(){
UIView.animate(withDuration: 0.3, delay: 0,options : [.transitionCrossDissolve],animations: {
// Set the isHidden property of the view
self.languageBtnStack.isHidden = false
}) {_ in
// Inform the stack view to update its layout
self.languageBtnStack.layoutIfNeeded()
}
}
UIView.animate(withDuration: 0.5, animations: { [weak self] in
guard let self else{return}
// Update the constant value of the top constraint
self.wokaOriginY.constant = wokaOriginY.constant - 50
// Inform the layout system to update
self.view.layoutIfNeeded()
}) { _ in
if !AuthFunc.shareInstance.checkLogin(){
UIView.animate(withDuration: 0.3, delay: 0,options : [.transitionCrossDissolve],animations: {
// Set the isHidden property of the view
self.languageBtnStack.isHidden = false
}) {_ in
// Inform the stack view to update its layout
self.languageBtnStack.layoutIfNeeded()
}
}
}