I have using a Xamarin binding for https://github.com/TTTAttributedLabel/TTTAttributedLabel
And as per - Make link in UILabel.attributedText *not* blue and *not* underlined
self.label.linkAttributes = @{NSForegroundColorAttributeName: color,
NSUnderlineStyleAttributeName: @(NSUnderlineStyleNone)};
I would like to set my link attributes, I am just not sure of syntax -
I have tried variations on these -
label.LinkAttributes = new NSDictionary(
new NSString("NSForegroundColorAttributeName"), UIColor.Red,
new NSString("NSUnderlineStyleAttributeName"), new NSUnderlineStyle() == NSUnderlineStyle.Double);
label.LinkAttributes = new NSDictionary(
new NSString("NSForegroundColorAttributeName"), UIColor.Red,
new NSString("NSUnderlineStyleAttributeName"), new NSNumber(2));
But not working. Not sure how to pass in an UIColor as cannot see its Type available, it is doing "something" as its wiped my underline + blue colour with this code.