feat: add nsattrbutedstring property to viewtext
This commit is contained in:
parent
70c4b4e00d
commit
0dfd2016ad
|
|
@ -0,0 +1,9 @@
|
|||
public extension ViewText {
|
||||
var attributedString: NSAttributedString? {
|
||||
guard let text = text else {
|
||||
return nil
|
||||
}
|
||||
|
||||
return attributes.attributedString(for: text)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue