     }
  
      /// tap callback
-    func didTapSelf() {
+    @objc func didTapSelf() {
         self.onTapBlock?(self)
     }
     

     - parameter gesture: the gesture that is sent to the user
     */

    func didSwipeSelf(_ gesture: UISwipeGestureRecognizer) {
        self.onSwipeBlock?(self, gesture.direction)
    }
}

    public typealias TTGDismissBlock = (_ snackbar:TTGSnackbar) -> Void
 
    /// Swipe gesture callback closure
    public typealias TTGSwipeBlock = (_ snackbar: TTGSnackbar, _ direction: UISwipeGestureRecognizerDirection) -> Void

    // MARK: - Public property.
 
