 
     public init(elements: [Section]) {
         self.elements = elements
+        alertView = AlertView(elements: elements)
         super.init(nibName: nil, bundle: nil)
     }
 
     required public init?(coder aDecoder: NSCoder) {
-        self.elements = []
+        elements = []
+        alertView = AlertView(elements: elements)
         super.init(coder: aDecoder)
     }
 

    }

    func configureAlertView() {
        let alertView = AlertView(elements: elements)
        self.alertView = alertView

        view.addSubview(alertView)

        NSLayoutConstraint.activate([

    let elements: [ElementProtocol]

    var animator = HYModalAlertAnimator()
    private let alertView: AlertView

    private weak var presentingVC: UIViewController?

