You can get rid of crash or un appeared text problem with adding YOUR_OPTION.rawValue
For example :
		 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
]
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: