             }
         }
         
-        if let actionsView = actionsAlertList?.view {
-            alertListsProvider.set(alertView: view, actionsView: actionsView) { (action) in
-                self.presentingViewController?.dismiss(animated: true, completion: {
-                    DispatchQueue.main.async(execute: {
-                        action.call()
-                    })
+        alertListsProvider.set(alertView: view, itemsView: itemsAlertList?.view, actionsView: actionsAlertList?.view) { (action) in
+            self.presentingViewController?.dismiss(animated: true, completion: {
+                DispatchQueue.main.async(execute: {
+                    action.call()
                 })
-            }
+            })
         }
     }
     

        recognizer.allowableMovement = CGFloat.greatestFiniteMagnitude
        recognizer.cancelsTouchesInView = false
        recognizer.delegate = self
        alertView.addGestureRecognizer(recognizer)
    }
    

}

protocol ACAlertListViewProvider {
    func set(alertView: UIView, itemsView: UIView?, actionsView: UIView?, callBlock: @escaping (ACAlertActionProtocolBase) -> Void) -> Void
    func alertView(items : [ACAlertItemProtocol], width: CGFloat) -> ACAlertListViewProtocol
    func alertView(actions : [ACAlertActionProtocolBase], width: CGFloat) -> ACAlertListViewProtocol
}
