         actionButton.addConstraint(actionButtonWidthConstraint!)
     }
 
+    /**
+    Invalid the dismiss timer.
+    */
     private func invalidDismissTimer() {
         dismissTimer?.invalidate()
         dismissTimer = nil
     }
 
+    /**
+    Get the current top viewController.
+    
+    - returns: current top viewController instance or nil.
+    */
     private func getTopViewController() -> UIViewController? {
         var topController: UIViewController? = UIApplication.sharedApplication().keyWindow?.rootViewController
         while topController?.presentedViewController != nil {

import UIKit
import Darwin

public enum TTGSnackbarDuration: NSTimeInterval {
    case Short = 1.0
    case Middle = 3.0

        }
    }

    /**
    Dismiss the snackbar manually.
    */
    public func dismiss() {
        // On main thread
        dispatch_async(dispatch_get_main_queue()) {
