     
     func tapGestureTriggered(sender: UITapGestureRecognizer) {
         isShowingUI = !isShowingUI
-        
-        if isShowingUI {
-            self.navigationController?.navigationBar.isHidden = false
-            self.tabBarController?.tabBar.isHidden = false
-            view.bringSubview(toFront: tagsLabelVisualEffectView)
-            view.bringSubview(toFront: tagsLabel)
-            UIView.animate(withDuration: 0.5, animations: {
-                self.navigationController?.navigationBar.alpha = 1
-                self.tabBarController?.tabBar.alpha = 1
-                self.tagsLabel.alpha = 1
-                
-                self.tagsLabelVisualEffectView.alpha = 1
-            })
-        } else {
-            UIView.animate(withDuration: 0.5, animations: {
-                self.navigationController?.navigationBar.alpha = 0
-                self.tabBarController?.tabBar.alpha = 0
-                self.tagsLabel.alpha = 0
-                
-                self.tagsLabelVisualEffectView.alpha = 0
-                
-            }) { (finished) in
-                self.navigationController?.navigationBar.isHidden = true
-                self.tabBarController?.tabBar.isHidden = true
-                self.view.bringSubview(toFront: self.scrollView)
-            }
-        }
     }
     
     func doubleTapGestureTriggered(sender: UITapGestureRecognizer) {

        } else {
            showNetworkErrorAlertController()
        }
    }
    
    private func showNetworkErrorAlertController() {

    
    var typeOfImagePresented: TypeOfImagePresented = .sample
    
    var isShowingUI: Bool = true {
        willSet {
            if newValue {
                self.navigationController?.navigationBar.isHidden = false
                self.tabBarController?.tabBar.isHidden = false
                view.bringSubview(toFront: tagsLabelVisualEffectView)
                view.bringSubview(toFront: tagsLabel)
                UIView.animate(withDuration: 0.5, animations: {
                    self.navigationController?.navigationBar.alpha = 1
                    self.tabBarController?.tabBar.alpha = 1
                    self.tagsLabel.alpha = 1
                    
                    self.tagsLabelVisualEffectView.alpha = 1
                })
            } else {
                UIView.animate(withDuration: 0.5, animations: {
                    self.navigationController?.navigationBar.alpha = 0
                    self.tabBarController?.tabBar.alpha = 0
                    self.tagsLabel.alpha = 0
                    
                    self.tagsLabelVisualEffectView.alpha = 0
                    
                }) { (finished) in
                    self.navigationController?.navigationBar.isHidden = true
                    self.tabBarController?.tabBar.isHidden = true
                    self.view.bringSubview(toFront: self.scrollView)
                }
            }
        }
    }
    
    var isZoomedMax: Bool {
        return scrollView.zoomScale == scrollView.maximumZoomScale
