 	private let textStorage = NSTextStorage()
 
 	public private(set) var lastDrawnFinalizedText: NSAttributedString?
-	public private(set) var lastUsedFinalTextColor: UIColor?
+	public private(set) var lastUsedFinalTextColor: CGColor?
 
 	public var linkTapped: (NSURL -> Void)?
 

		let attributedText = self.attributedText
		let finalizedText = NSMutableAttributedString(string: attributedText.string, attributes: [
			NSFontAttributeName: font,
			NSForegroundColorAttributeName: finalTextColor,
			NSParagraphStyleAttributeName: paragraphStyle
		])


	}


	public override func didMoveToWindow() {
		super.didMoveToWindow()

		guard let window = window else {
			return
		}

		layer.contentsScale = window.screen.scale
	}


	public override func drawLayer(layer: CALayer, inContext context: CGContext) {
		guard let layer = layer as? LabelLayer else {
			return
		}

		renderingLayer = layer
		lastDrawnFinalizedText = finalizeText()

		UIGraphicsPushContext(context)

		let textContainerOrigin = originForTextContainer()
		let glyphRange = layoutManager.glyphRangeForTextContainer(textContainer)
		layoutManager.drawBackgroundForGlyphRange(glyphRange, atPoint: textContainerOrigin)
		layoutManager.drawGlyphsForGlyphRange(glyphRange, atPoint: textContainerOrigin)

		UIGraphicsPopContext()
	}


