         setNeedsNavigationBackground(alpha: topViewController?.navBarBgAlpha ?? 0)
         enableShadow(enable: topViewController?.navBarBgShadow ?? false)
         lo_bg?.update(color: (topViewController?.navBarBGColor ?? .white).withAlphaComponent(topViewController?.navBarBgAlpha ?? 1), drag: false)
-        navigationBar.tintColor = topViewController?.navBarTintColor
+        navigationBar.tintColor = topViewController?.navBarTintColor ?? globalNavBarTintColor
         return true
     }
     

        enableShadow(enable: toViewController?.navBarBgShadow ?? false)
        
        // Tint Color
        let fromColor = fromViewController?.navBarTintColor ?? .blue
        let toColor = toViewController?.navBarTintColor ?? .blue
        let newColor = averageColor(fromColor: fromColor, toColor: toColor, percent: percentComplete)
        navigationBar.tintColor = newColor
        let midColor = averageColor(fromColor: (fromViewController?.navBarBGColor ?? .white), toColor: (toViewController?.navBarBGColor ?? .white), percent: percentComplete)

    fileprivate struct AssociatedKeys {
        static var navBarBgShadow: String = "navBarBgShadow"
        static var navBarBgAlpha: CGFloat = 1.0
        static var globalNavBarTintColor: UIColor = UIColor.defaultNavBarTintColor
        static var navBarTintColor: UIColor = UIColor.defaultNavBarTintColor
        static var navBarBGColor: UIColor = UIColor.white
        static var bg = "bg"
        static var poping = "poping"
