- 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:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user