func drawText(image :UIImage) ->UIImage { let text = "Some text.." let font = UIFont.boldSystemFontOfSize(32) let imageRect = CGRectMake(0,0,image.size.width,image.size.height) UIGraphicsBeginImageContext(image.size); image.drawInRect(imageRect) let textRect = CGRectMake(5, 5, image.size.width - 5, image.size.height - 5) let textStyle = NSMutableParagraphStyle.defaultParagraphStyle().mutableCopy()