         segmentedControl.setTitleTextAttributes(attributes, for: .selected)
         return segmentedControl
     }()
-    
+
     /// Initialises the UITableViewController, sets title, registers datasource & delegates & cells
     ///
     /// - Parameter realm: a realm instance

        fetchObjects()
        BrowserTools.checkForUpdates()
    }
    
    public override func viewWillTransition(to size: CGSize,
                                            with coordinator: UIViewControllerTransitionCoordinator) {
        super.viewWillTransition(to: size, with: coordinator)
        realmBrowserView.tableView.reloadData()
    }
    
    required public init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    // MARK: - Realm browser convenience method(s)
    
    /// Instantiate the browser using default Realm.
    ///
    /// - Returns: UINavigationController with an instance of realmBrowser
    public static func realmBrowser() -> UINavigationController? {
        return realmBrowser(showing: nil)
    }
    
    public static func realmBrowser(showing classes:[String]?,aURL URL:URL) -> UINavigationController? {
        do {
            let realm = try Realm(fileURL: URL)
            return realmBrowserForRealm(realm, showing: classes)

            navigationController?.pushViewController(viewController, animated: true)
        }
    }

    // MARK: - private Methods

    private func elementCount(named name: String) -> Int {
        return realm.dynamicObjects(name).count
    }

    private func configureNavigationBar() {
        navigationItem.titleView = filterOptions
        let bbiDismiss = UIBarButtonItem(barButtonSystemItem: .stop, target: self, action: .dismissBrowser)
