     Manager.defaultManager.shouldPromptIfRated = shouldPromptIfRated
 }
 
+
+/*
+ * Return whether Armchair will try and present the Storekit review prompt (useful for custom dialog modification)
+ */
+public var shouldTryStoreKitReviewPrompt : Bool {
+    return Manager.defaultManager.shouldTryStoreKitReviewPrompt
+}
+
 /*
  * If set to true, the main bundle will always be used to load localized strings.
  * Set this to true if you have provided your own custom localizations in

    
    //Close the in-app rating (StoreKit) view and restore the previous status bar style.
    fileprivate func closeModalPanel() {
        if modalPanelOpen {
            UIApplication.shared.setStatusBarStyle(currentStatusBarStyle, animated:usesAnimation)
            let usedAnimation = usesAnimation
            modalPanelOpen = false
            
            // get the top most controller (= the StoreKit Controller) and dismiss it
            if let presentingController = UIApplication.shared.keyWindow?.rootViewController {
                if let topController = topMostViewController(presentingController) {
                    topController.dismiss(animated: usesAnimation) {
                        if let closure = self.didDismissModalViewClosure {
                            closure(usedAnimation)
                        }
                    }
                    currentStatusBarStyle = UIStatusBarStyle.default
                }
            }
        }
    }
    

    #endif
    
    private func hideRatingAlert() {
        #if os(OSX)
        if let alert = ratingAlert {
            debugLog("Hiding Alert")
                if let window = NSApplication.shared().keyWindow {
                    if let parent = window.sheetParent {
                        parent.endSheet(window)
                    }
                }
            ratingAlert = nil
            
        
        }
        #endif
    }
    
    fileprivate func defaultAffiliateCode() -> String {
