diff --git a/TIUIKitCore/Sources/Extensions/ViewText/ViewText+NSAttributedString.swift b/TIUIKitCore/Sources/Extensions/ViewText/ViewText+NSAttributedString.swift new file mode 100644 index 00000000..1b2ebab7 --- /dev/null +++ b/TIUIKitCore/Sources/Extensions/ViewText/ViewText+NSAttributedString.swift @@ -0,0 +1,9 @@ +public extension ViewText { + var attributedString: NSAttributedString? { + guard let text = text else { + return nil + } + + return attributes.attributedString(for: text) + } +}