     imageView.topAnchor.constraint(equalTo: alertView.topAnchor, constant: 5).isActive = true
     imageView.leadingAnchor.constraint(equalTo: alertView.leadingAnchor, constant: Dimension.padding).isActive = true
     imageView.trailingAnchor.constraint(equalTo: alertView.trailingAnchor, constant: -Dimension.padding).isActive = true
-    
-    
     if view.bounds.height < view.bounds.width {
       iconHeightConstraint = imageView.heightAnchor.constraint(equalToConstant: 0)
     } else {
       iconHeightConstraint = imageView.heightAnchor.constraint(equalToConstant: imageViewHeight)
     }
-//    iconHeightConstraint = imageView.heightAnchor.constraint(equalToConstant: imageViewHeight)
-    // FIXME - If device is in landscape mode use 0 as the image height
     iconHeightConstraint?.isActive = true
     
     // titleLabel Constraints
     titleLabel.topAnchor.constraint(equalTo: imageView.bottomAnchor, constant: 8).isActive = true
     titleLabel.leadingAnchor.constraint(equalTo: alertView.leadingAnchor, constant: Dimension.padding).isActive = true
     titleLabel.trailingAnchor.constraint(equalTo: alertView.trailingAnchor, constant: -Dimension.padding).isActive = true
-//    titleLabel.heightAnchor.constraint(greaterThanOrEqualToConstant: titleLabelHeight).isActive = true
     titleLabel.sizeToFit()
     
     // messageLabel Constraints
     messageTextView.topAnchor.constraint(equalTo: titleLabel.bottomAnchor, constant: 0).isActive = true
     messageTextView.leadingAnchor.constraint(equalTo: alertView.leadingAnchor, constant: Dimension.padding).isActive = true
     messageTextView.trailingAnchor.constraint(equalTo: alertView.trailingAnchor, constant: -Dimension.padding).isActive = true
-    
-//    if (messageLabelHeight == 0.0) {
-//      messageTextViewHeightConstraint = messageTextView.heightAnchor.constraint(equalToConstant: messageLabelHeight)
-//      messageTextViewHeightConstraint!.isActive = true
-//      messageTextView.showsVerticalScrollIndicator = false
-//    } else {
-//      messageTextViewHeightConstraint = messageTextView.heightAnchor.constraint(greaterThanOrEqualToConstant: messageLabelHeight)
-//      messageTextViewHeightConstraint!.isActive = true
-//    }
-    
     messageTextView.sizeToFit()
     
     // actionStackView Constraints    


// MARK: - EMAlerView Dimensions
enum Dimension {
  static var width: CGFloat {
    return (UIScreen.main.bounds.width <= 414.0) ? (UIScreen.main.bounds.width - 60) : 280
  }
  static let padding: CGFloat = 15.0
  static let buttonHeight: CGFloat = 50.0
  static let iconHeight: CGFloat = 100.0
  static let textFieldHeight: CGFloat = 30.0
}

open class EMAlertController: UIViewController {

  open override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
    
    if size.height < size.width {
      alertViewHeight?.constant = size.height - 40
      iconHeightConstraint?.constant = 0
    } else {
      alertViewHeight?.constant = size.height - 80
      iconHeightConstraint?.constant = Dimension.iconHeight
    }
    
    alertViewWidth?.constant = Dimension.width(from: size)
    
    UIView.animate(withDuration: 0.3) {
      self.alertView.updateConstraints()
    }
  }
}
