feat: add nsattrbutedstring property to viewtext

This commit is contained in:
Aleksandr Shushkov 2022-04-20 14:29:13 +03:00
parent 70c4b4e00d
commit 0dfd2016ad
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
public extension ViewText {
var attributedString: NSAttributedString? {
guard let text = text else {
return nil
}
return attributes.attributedString(for: text)
}
}