             titleParagraphStyle.alignment = titleAlignment
             titleParagraphStyle.lineBreakMode = NSLineBreakMode.ByClipping
             
-            (title as NSString).drawWithRect(titleFrame, options: NSStringDrawingOptions.UsesLineFragmentOrigin, attributes: [NSFontAttributeName: titleFont, NSForegroundColorAttributeName: titleColor, NSParagraphStyleAttributeName: titleParagraphStyle], context: nil)
+            // Swift 1.1: use (title as NSString)
+            (title as! NSString).drawWithRect(titleFrame, options: NSStringDrawingOptions.UsesLineFragmentOrigin, attributes: [NSFontAttributeName: titleFont, NSForegroundColorAttributeName: titleColor, NSParagraphStyleAttributeName: titleParagraphStyle], context: nil)
         }
         
         if let message = message {

            targetPoint = CGPoint(x: x_p-x_b, y: fullHeight-2.0);
        }
        
        var finalFrame = CGRect(
            x: x_b - sidePadding,
            y: y_b,

        }
        
        if let title = title {
            
            var titleSize = titleBoundingSize(width: rectWidth)
            
            if titleSize.width > textSize.width {
                textSize.width = titleSize.width
