diff --git a/src/label.ios.ts b/src/label.ios.ts index c533862..ef18163 100644 --- a/src/label.ios.ts +++ b/src/label.ios.ts @@ -145,11 +145,11 @@ export class Label extends LabelBase { // [DTDefaultLineBreakMode]: kCTLineBreakByWordWrapping } as any; this.htmlText = NSMutableAttributedString.alloc().initWithHTMLDataOptionsDocumentAttributes(nsData, options, null); - this.htmlText.enumerateAttributesInRangeOptionsUsingBlock({ location: 0, length: this.htmlText.length }, NSAttributedStringEnumerationReverse, function( + this.htmlText.enumerateAttributesInRangeOptionsUsingBlock({ location: 0, length: this.htmlText.length }, NSAttributedStringEnumerationReverse, ( attributes: NSDictionary, range, stop - ) { + ) => { if (!!attributes.valueForKey('DTGUID')) { // We need to remove this attribute or links are not colored right //