why strikethrough isn’t working on ios 14?

Adding baselineOffset with value 0 to the attributed string brings back the strikethrough line. More details can be found on apple dev forum and this SO thread.

attributeString.addAttribute(NSAttributedString.Key.baselineOffset, value: 0, range: totalNsString.range(of: strikeString))

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top