4

I'm seeing an issue with Xcode 10.3 and iOS 13. With this setup if I use NSAttributedString and set it to a UILabel, the text goes invisible. Same code will continue to work on lower iOS versions. If the same code is built/deployed using Xcode 11, iOS 13 renders the strings without any issue. Has anyone run in to this yet OR have potential solutions?

// attrlabel : UILabel
let attrStr = NSMutableAttributedString.init(string: str, attributes: [NSAttributedString.Key.textEffect: NSAttributedString.TextEffectStyle.letterpressStyle])
            attrLabel.attributedText = attrStr
Gaurav Arora
  • 1,805
  • 13
  • 13

1 Answers1

0

I had the same problem. In my case I fixed it by not using .textEfect key, I use .attachment key instead