     override func didReceiveMemoryWarning() {
         super.didReceiveMemoryWarning()
         // Dispose of any resources that can be recreated.
+    }
+}
+
+// MARK: - Back to top.
+
+extension CategoryAddingViewController {
+    override func makeViewScrollToTopIfNecessary(at location: CGPoint) {
+        tableView.scrollRectToVisible(CGRect(origin: .zero, size: CGSize(width: tableView.bounds.width, height: 1.0)), animated: true)
     }
 }
 

            realm.add(category)
        }
        self.tabNavigationController?.dismiss(animated: true, completion: nil)
    }
    
    @objc
    fileprivate func _handleBackToTop(_ sender: UIButton) {
        tableView.scrollRectToVisible(CGRect(origin: .zero, size: CGSize(width: tableView.bounds.width, height: 1.0)), animated: true)
    }
}


        
        return (lightColor, darkColor)
    }
}

// MARK: - Storyboard Supporting.
