         
         // Navigation buttons
         if let navi = navigationController {
-            if navi.viewControllers.count > 0 &&
-               navi.viewControllers[0] == self
-            {
+            if navi.viewControllers.count > 0 && navi.viewControllers[0] == self {
                 // We're first on stack so show done button
                 doneButton = UIBarButtonItem(
                     barButtonSystemItem: UIBarButtonSystemItem.done,


    private func initialisation() {
        // Defaults
        if let vcBasedStatusBarAppearance = Bundle.main
            .object(forInfoDictionaryKey: "UIViewControllerBasedStatusBarAppearance") as? Bool {
           isVCBasedStatusBarAppearance = vcBasedStatusBarAppearance
        } else {
            isVCBasedStatusBarAppearance = true

        navigationController?.setNavigationBarHidden(false, animated: animated)
    
        if let navBar = navigationController?.navigationBar {
            navBar.titleTextAttributes = [NSForegroundColorAttributeName:navigationBarTextColor]
            navBar.backgroundColor = navigationBarBackgroundColor
            navBar.tintColor = navigationBarTextColor
            navBar.barTintColor = navigationBarTintColor
            navBar.shadowImage = nil
            navBar.isTranslucent = navigationBarTranslucent
            navBar.barStyle = .default
        }
    }

