     var unwindAllStopsTVCDelegate: UnwindAllStopsTVCDelegate?
     var height: CGFloat?
     var currentChar: Character?
-    var activityIndicator: UIActivityIndicatorView?
+    var loadingIndicator: LoadingIndicator?
 
     override func viewWillLayoutSubviews() {
         if let y = navigationController?.navigationBar.frame.maxY {


// MARK: DZNEmptyDataSet 
extension AllStopsTableViewController: DZNEmptyDataSetSource, DZNEmptyDataSetDelegate {
    func setUpActivityIndicator() {
        activityIndicator = UIActivityIndicatorView(style: UIActivityIndicatorView.Style.gray)
        if let activityIndicator = activityIndicator {
            view.addSubview(activityIndicator)
            activityIndicator.snp.makeConstraints { (make) in
                make.centerX.equalToSuperview()
                make.centerY.equalToSuperview()
            }
        }
    }

    func image(forEmptyDataSet scrollView: UIScrollView!) -> UIImage! {
        return activityIndicator != nil ? nil : #imageLiteral(resourceName: "emptyPin")
    }

    func description(forEmptyDataSet scrollView: UIScrollView!) -> NSAttributedString! {
        if let _ = activityIndicator {
            return nil
        }
        let title = "Couldn't Get Stops"

        return NSAttributedString(string: title, attributes: attrs)
    }

    func emptyDataSet(_ scrollView: UIScrollView, didTap didTapButton: UIButton) {
        setUpLoadingIndicator()
        tableView.reloadData()
        retryNetwork { () -> Void in
            self.loadingIndicator?.removeFromSuperview()
            self.loadingIndicator = nil
            self.setUpTableOnRetry()
        }
    }

