     fileprivate var dismissHandler: ScrollableEducationPanelDismissHandler?
     fileprivate var showCloseButton = true
     private var discardDismissHandlerOnPrimaryButtonTap = false
+    private var primaryButtonTapped = false
+    
     
     var image:UIImage? {
         get {

        guard let primaryButtonTapHandler = primaryButtonTapHandler else {
            return
        }
        primaryButtonTapHandler(sender)
    }



    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        guard let dismissHandler = dismissHandler else {
            return
        }
        guard !(discardDismissHandlerOnPrimaryButtonTap && primaryButtonTapped) else {
            return
        }
        dismissHandler()
    }
    
    override func viewDidDisappear(_ animated: Bool) {
        super.viewDidDisappear(animated)
        primaryButtonTapped = false
    }
    
    func apply(theme: Theme) {
