Ability to specify text alignment of message label

This commit is contained in:
David Renoldner
2016-01-29 23:02:04 +01:00
parent 18b68c9824
commit a8503b241f

View File

@@ -110,6 +110,13 @@ public class TTGSnackbar: UIView {
}
}
/// Message text alignment. Default is Left
public dynamic var messageTextAlign: NSTextAlignment = .Left {
didSet {
self.messageLabel.textAlignment = messageTextAlign
}
}
/// Action button title.
public dynamic var actionText: String = "" {
didSet {