 
 class MKOutlinedLabelNode: SKLabelNode {
     
-    var borderColor: UIColor = UIColor.blackColor()
+    var borderColor: UIColor = UIColor.black
     
     var outlinedText: String! {
         didSet { drawText() }

    private func getTextAsCharArray() -> [UniChar] {
        var chars = [UniChar]()
        
        for codeUnit in text.utf16 {
            chars.append(codeUnit)
        }
        return chars
    }
    
    private func createBorderPathForText() -> CGPathRef? {
        let chars = getTextAsCharArray()
        let borderFont = CTFontCreateWithName(self.fontName, self.fontSize, nil)
        
        var glyphs = Array<CGGlyph>(count: chars.count, repeatedValue: 0)
        let gotGlyphs = CTFontGetGlyphsForCharacters(borderFont, chars, &glyphs, chars.count)
        
        if gotGlyphs {
            var advances = Array<CGSize>(count: chars.count, repeatedValue: CGSize())
            CTFontGetAdvancesForGlyphs(borderFont, CTFontOrientation.OrientationHorizontal, glyphs, &advances, chars.count);
            
            let letters = CGPathCreateMutable()
            var xPosition = 0 as CGFloat
            for index in 0...(chars.count - 1) {
                let letter = CTFontCreatePathForGlyph(borderFont, glyphs[index], nil)
                var t = CGAffineTransformMakeTranslation(xPosition , 0)
                CGPathAddPath(letters, &t, letter)
                xPosition = xPosition + advances[index].width
            }
            

            self.text = text
            if let path = createBorderPathForText() {
                let border = SKShapeNode()
                
                border.strokeColor = borderColor
                border.lineWidth = 7;
                border.path = path
                border.position = positionBorder(border: border)
                addChild(border)
                
                self.border = border
