mirror of
https://github.com/HackPlan/TTGSnackbar.git
synced 2026-04-30 04:44:56 +08:00
Ability to specify text alignment of message label
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user