Commit 337572bc by Daniel Dahan Committed by GitHub

Merge pull request #789 from GianniCarlo/master

Add convenience property for the attributed text of the snackbar label
parents 0c32523e 1b576322
......@@ -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.
@IBInspectable
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