         self.setNeedsUpdateConstraints()
     }
 
-    private func drawRectWithKerning(rect: CGRect, options: NSStringDrawingOptions, context: CGContextRef) {
+    private func drawRectWithKerning(rect: CGRect, options: NSStringDrawingOptions, context: CGContext) {
         guard let _attributedText = self.attributedText else {
             return
         }

        type.drawText(on: context)
    }

    public func drawTextInRect(rect: CGRect) {
        let context = UIGraphicsGetCurrentContext()
        var options = NSStringDrawingOptions.UsesLineFragmentOrigin
        if self.lineBreakMode == .ByTruncatingTail {
            options.unionInPlace(.TruncatesLastVisibleLine)

        self.drawRectWithKerning(
            rect,
            options: options,
            context: context)
    }

    public override func drawRect(rect: CGRect) {
        let context = UIGraphicsGetCurrentContext()
        self.drawTextInRect(rect, context: context)
    }
}
