Closed rivera-ernesto closed 6 years ago
Sample
let shadow = NSShadow()
shadow.shadowColor = UIColor.darkGray
shadow.shadowBlurRadius = 3.0
let textAttributes: [NSAttributedStringKey: Any] = [
.strokeColor: UIColor.black,
.strokeWidth: -3.0,
.shadow: shadow
]
label.textAttributes = textAttributes
Awesome. Thank you.
It would be ideal to support
attributedText
properly, but in the mean time this will work just fine for most cases.