         return appropriateDensity * factor
     }
     
-    func addSublayerLine(frame:CGRect) {
+    private func addSublayerLine(frame:CGRect) {
         
         let lineLayer = CALayer()
         lineLayer.backgroundColor = UIColor.init(white: 0.0, alpha: 0.29).cgColor

        }
    }
    
    func getLastViewFrame(view:UIView) -> CGRect{
        
        var frame:CGRect = CGRect.zero
        let innerSubViews = self.innerView.subviews

        self.innerView.layer.addSublayer(lineLayer)
    }
    
    @objc private func dismissOnBackgroundTouch(_ gestureRecognizer:UITapGestureRecognizer){
        
        if dismissOnBackgroundTouch == true {
            guard let senderView = gestureRecognizer.view
                else {
                    return
            }
            
            if gestureRecognizer.state == .ended {
                let location = gestureRecognizer.location(in: senderView.superview)
                let closeSuperView = self.isTappedOutsideRegion(self.alertView, withLocation: location)
                if closeSuperView == true {
                    self.dismiss()
                }
            }
        }
    }
    
    private func isTappedOutsideRegion(_ view:UIView, withLocation location:CGPoint) -> Bool {
        let endX = view.frame.origin.x + view.frame.size.width
        let endY = view.frame.origin.y + view.frame.size.height
        
        var isValid:Bool = false
        if (location.x < view.frame.origin.x || location.y < view.frame.origin.y) || (location.x > endX || location.y > endY) {
            isValid = true
        }
        return isValid
    }
    
    public func show() {
        let keyWindow = UIApplication.shared.keyWindow
        keyWindow?.addSubview(self)
        
