         self.message = message
         configure()
     }
-    
+
     public init(message: String, duration: TTGSnackbarDuration, actionText: String, actionBlock: TTGActionBlock) {
         super.init(frame: CGRectMake(0, 0, 0, 0))
         self.duration = duration

    public var actionBlock: TTGActionBlock? = nil
    public var dismissBlock: TTGDismissBlock? = nil
    public var duration: TTGSnackbarDuration = TTGSnackbarDuration.TTGSnackbarDurationShort
    public var message: String = "" {
        didSet {
            self.messageLabel.text = message

    case TTGSnackbarDurationMiddle = 3.0
    case TTGSnackbarDurationLong = 5.0
    case TTGSnackbarDurationForever = 9999999999.0 // Must dismiss manually.
}

public enum TTGSnackbarAnimationType {
    case TTGSnackbarAnimationFadeInFadeOut
    case TTGSnackbarAnimationSlideFromBottomToTop
    case TTGSnackbarAnimationSlideFromBottomBackToBottom
    case TTGSnackbarAnimationSlideFromLeftToRight
    case TTGSnackbarAnimationSlideFromRightToLeft
}

public class TTGSnackbar: UIView {
