         seperateView.hidden = actionButton.hidden
         actionButtonWidthConstraint?.constant = actionButton.hidden ? 0 : (secondActionButton.hidden ? TTGSnackbar.snackbarActionButtonMaxWidth : TTGSnackbar.snackbarActionButtonMinWidth)
         secondActionButtonWidthConstraint?.constant = secondActionButton.hidden ? 0 : (actionButton.hidden ? TTGSnackbar.snackbarActionButtonMaxWidth : TTGSnackbar.snackbarActionButtonMinWidth)
-        
+
         self.layoutIfNeeded()
 
-        // Find current stop viewcontroller
-        if let topController = getTopViewController() {
-            let superView: UIView = topController.view
+        // Get windows to show
+        if let superView = UIApplication.sharedApplication().keyWindow {
             superView.addSubview(self)
 
             // Snackbar height constraint


        actionButton.addConstraint(actionButtonWidthConstraint!)
        secondActionButton.addConstraint(secondActionButtonWidthConstraint!)
        
        self.addConstraints(hConstraints)
        self.addConstraints(vConstraintsForMessageLabel)
        self.addConstraints(vConstraintsForSeperateView)

    private func invalidDismissTimer() {
        dismissTimer?.invalidate()
        dismissTimer = nil
    }

    /**
