     var viewArea = UIView()
     
     var minHeight:CGFloat{
-        return self.statusBarHeight + 40
+        return QToasterConfig.statusBarHeight + 40
     }
     var textSize:CGSize{
         if toaster.iconImage == nil && (toaster.iconURL == nil || toaster.iconURL == "") {
-            return textSize(toaster.text, font: toaster.textFont, maxWidth: self.width - 20)
+            return QToasterConfig.textSize(toaster.text, font: toaster.textFont, maxWidth: QToasterConfig.screenWidth)
         }else{
-            return textSize(toaster.text, font: toaster.textFont, maxWidth: self.width - toaster.iconSquareSize - 25)
+            return QToasterConfig.textSize(toaster.text, font: toaster.textFont, maxWidth: QToasterConfig.screenWidth - toaster.iconSquareSize - 25)
         }
     }
     var titleSize:CGSize{
         if toaster.titleText != nil && toaster.titleText != ""{
             if toaster.iconImage == nil && (toaster.iconURL == nil || toaster.iconURL == "") {
-                return textSize(toaster.titleText!, font: toaster.textFont, maxWidth: self.width - 20)
+                return QToasterConfig.textSize(toaster.titleText!, font: toaster.textFont, maxWidth: QToasterConfig.screenWidth - 20)
             }else{
-                return textSize(toaster.titleText!, font: toaster.textFont, maxWidth: self.width -  toaster.iconSquareSize - 25)
+                return QToasterConfig.textSize(toaster.titleText!, font: toaster.textFont, maxWidth: QToasterConfig.screenWidth -  toaster.iconSquareSize - 25)
             }
         }else{
             return CGSizeMake(0, 0)
-        }
-    }
-    
-    var width:CGFloat{
-        get{
-            return UIScreen.mainScreen().bounds.size.width
-        }
-    }
-    
-    var statusBarHeight:CGFloat{
-        get{
-            return UIApplication.sharedApplication().statusBarFrame.size.height
         }
     }
     

                iconView.image = toaster.iconImage
            }
            if toaster.iconURL != nil && toaster.iconURL != "" {
                imageForUrl(toaster.iconURL!, completionHandler:{(image: UIImage?, url: String) in
                    iconView.image = image
                })
            }

        }
        
        
        var yPos:CGFloat = QToasterConfig.statusBarHeight + 10
        
        let toasterViewFrame = CGRectMake(0,0 - toasterHeight, QToasterConfig.screenWidth,toasterHeight)
        
        viewArea.frame = toasterViewFrame
        viewArea.userInteractionEnabled = false
