Closed iKisliy closed 6 years ago
It's simulator issue, on real device everything is ok
Found that it's not simulator issue. On iOS 10 — 10.3 it's changing foreground color, but on 11.2+ (11.0?) it's always blue. Someone notice that behavior and how to fix it?
Did anybody decide the trouble with a blue link color?
@YuryRadchenko check example, SimpleSwiftViewController.swift and MultipleSwiftViewController.swift
Label is blue when you add to attributes link key. When remove it, but leave tappableRegion, color is correct (not default blue) and text is tappable. But how remove underline and blue color from link in UILabel?
Didn't find any hints in examples.
You don't need to use the .link
attribute, but if you want to, you can specify .foregroundColor
and .underlineStyle
attributes which I believe override them.
When I set foreground color on link, it's still blue