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.