Thursday, December 1, 2022
HomeiOS Developmentios - How take away animation whereas loading View?

ios – How take away animation whereas loading View?


I’ve drawback with animation views in TabViewController. Whereas first loading view in TabView, view loading with ineffective animation.

animation in 3 views in TabView

import UIKit

class TabBarController: UITabBarController {

    override func viewDidLoad() {
        tremendous.viewDidLoad()
        
        self.moreNavigationController.interactivePopGestureRecognizer?.isEnabled = false
        self.moreNavigationController.navigationBar.isHidden = true
        self.moreNavigationController.topViewController?.view.isHidden = true
        
        self.tabBar.isTranslucent = true
        self.tabBar.isHidden = true
        
    }
    
    override func viewDidAppear(_ animated: Bool) {
        tremendous.viewDidAppear(animated)
    }
}

All views are switched by:

self.tabBarHandler?.selectedViewController = targetController

TabBar is contained in ContainerView.

enter image description here

I attempted:

  • set false in tremendous.viewDidAppear in ViewControllers

I Anticipate:

  • take away this animation whereas loading view.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments