Compare commits

...

1 Commits

Author SHA1 Message Date
Aleksandr Shushkov 0dfd2016ad feat: add nsattrbutedstring property to viewtext 2022-04-20 14:29:13 +03:00
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)
}
}