Commit 1b576322 by Gianni Carlo

Add convenience property for the attributed text of the snackbar label

parent 6bfd58cf
...@@ -48,6 +48,17 @@ open class Snackbar: Bar { ...@@ -48,6 +48,17 @@ open class Snackbar: Bar {
} }
} }
/// A convenience property to set the titleLabel attributedText.
open var attributedText: NSAttributedString? {
get {
return textLabel.attributedText
}
set(value) {
textLabel.attributedText = value
layoutSubviews()
}
}
/// Text label. /// Text label.
@IBInspectable @IBInspectable
open let textLabel = UILabel() open let textLabel = UILabel()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment