Skip to content

Commit 4675633

Browse files
authored
fix(ios): textDecoration broken
1 parent 6c1dcba commit 4675633

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/text/platforms/ios/src/NSTextUtils.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ class NSTextUtils: NSObject {
1313
let isTextView:Bool = (view is UITextView)
1414

1515
if textDecoration.contains("underline") {
16-
attrDict[NSAttributedString.Key.underlineStyle] = (NSUnderlineStyle.single)
16+
attrDict[NSAttributedString.Key.underlineStyle] = (NSUnderlineStyle.single.rawValue)
1717
}
1818

1919
if textDecoration.contains("line-through") {
20-
attrDict[NSAttributedString.Key.strikethroughStyle] = (NSUnderlineStyle.single)
20+
attrDict[NSAttributedString.Key.strikethroughStyle] = (NSUnderlineStyle.single.rawValue)
2121
}
2222

2323
if letterSpacing != 0 && isTextType && view is UILabel && (view as! UILabel).font != nil {

0 commit comments

Comments
 (0)