         guard let context = context else {
             return
         }
-        guard let backgroundColor = self.attributedText.backgroundColor else {
+        guard let backgroundColor = self.backgroundColor else {
             return
         }
         backgroundColor.setFill()

        truncateText: String = "...",
        verticalAlignment: KernLabelVerticalAlignment = .Top) {
        self.attributedText = NSMutableAttributedString(attributedString: attributedText).kerning(with: kerningSettings)
        self.typesetter = CTTypesetterCreateWithAttributedString(self.attributedText)
        self.font = self.attributedText.font
        self.fontSize = self.font.pointSize


    var kerningSettings = KernLabelKerningMode.Normal.kerningSettings

    var backgroundColor: UIColor? = nil

    init(
        attributedText: NSAttributedString,
        rect: CGRect,
