                                  backgroundColor: UIColor = Defaults.BackgroundColor,
                                  textColor: UIColor = Defaults.TextColor,
                                  duration: Double = Defaults.Duration) {
+        
         // Ensure that everything happens on the main queue
         DispatchQueue.main.async {
             let windows = UIApplication.shared.windows.filter { $0.windowLevel == UIWindowLevelNormal && !$0.isHidden }

            window.addConstraint(NSLayoutConstraint(item: dropdown, attribute: .right, relatedBy: .equal, toItem: window, attribute: .right, multiplier: 1, constant: 0))
            window.addConstraint(NSLayoutConstraint(item: dropdown, attribute: .height, relatedBy: .greaterThanOrEqual, toItem: nil, attribute: .height, multiplier: 1, constant: Defaults.Height))
            window.addConstraint(animatedConstraint)
            // Add the padding view constraints
            window.addConstraint(NSLayoutConstraint(item: paddingView, attribute: .width, relatedBy: .equal, toItem: dropdown, attribute: .width, multiplier: 1, constant: 0))
            window.addConstraint(NSLayoutConstraint(item: paddingView, attribute: .height, relatedBy: .equal, toItem: dropdown, attribute: .height, multiplier: 1, constant: 0))

            
            window.layoutIfNeeded()
            
            let titleFrame = dropdown.titleLabel.frame;
            let titleHeight = titleFrame.size.height;
            let messageFrame = dropdown.messageLabel.frame;
            let messageHeight = messageFrame.size.height;
            
            let contentHeight = Int(messageHeight) + Int(titleHeight);
            
            let animation = self.popAnimationForAnimationType(animationType: animationType)
            animation.toValue = contentHeight + Int(2 * Defaults.VerticalPadding + Defaults.TopPadding)
            animatedConstraint.pop_add(animation, forKey: "show-dropdown")
            
            dropdown.perform(#selector(dismiss), with: nil, afterDelay: duration + Defaults.AnimationDuration)
