Strikethrough style is not rendered in iOS 14

I'm trying to use replaceCharacters(in:with:) of NSMutableAttributedString to replace a substring and apply different attributes. The problem is strikethroughStyle is not rendered for that substring.

Code Block swift
let s = NSMutableAttributedString(
    string: "hello world!",
    attributes: [.foregroundColor: UIColor.label]
)
let range = s.mutableString.range(of: "world")
s.replaceCharacters(
    in: range,
    with: NSAttributedString(
        string: "mars",
        attributes: [
            .strikethroughStyle: NSUnderlineStyle.single.rawValue,
            .strikethroughColor: UIColor.systemRed,
            .foregroundColor: UIColor.systemRed,
        ]
    )
)


Here, I can see that the color of the substring "mars" is changed, but there is no strikethrough line.

The same code is successfully working for iOS 13.

Issue is indeed fixed on the current iOS 14.2 Beta.
All 6 of the applications with this issue are now rendered correctly, so it should be fixed on all other applications as well.
You can get rid of crash or un appeared text problem with adding YOUR_OPTION.rawValue
For example :

Code Block
let attrs: [NSAttributedString.Key: Any] = [
            .font : textFXmodel.font,
            .paragraphStyle : paraghraphStyle,
            .foregroundColor: textFXmodel.textColor,
            .backgroundColor: textFXmodel.backgroundColor,
            .obliqueness: textFXmodel.obliqueness,
            .strokeWidth : textFXmodel.strokeWidth,
            .strokeColor : textFXmodel.strokeColor,
            .kern : textFXmodel.kern,
            .strikethroughStyle: textFXmodel.strikeTroughStyle.rawValue,
            .strikethroughColor: textFXmodel.strikeTroughColor,
            .underlineStyle: textFXmodel.underLineStyle.rawValue,
            .underlineColor: textFXmodel.underLineColor,
            .shadow : shadow
        ]


Strikethrough style is not rendered in iOS 14
 
 
Q