title: snackbar with custom Function call in Swift
body: <p>I am using snackBar in my app, it's working fine in my application but I want to access the Custom Function from SnackBar Action Block.</p>
  
  <p>I can try that it's showing </p>
  
  <ul>
  <li>Instance member 'uncheck' cannot be used on type 'DetailsInfoViewController' did you mean to use a value of this type instead?</li>
  </ul>
  
  <p>This is the code </p>
  
  <pre><code>let snackbar = TTGSnackbar(message: "Attendance Update !",
                             duration: .long,
                             actionText: "SEND",
  
                             actionBlock: {
                                  (snackbar) in
  
                              uncheck()
  
                              print("snack bar Action")
  
  })
  
  func uncheck()
  {
  
      print("snackbar uncheck function")
      snackbarCount -= 1
      checkSnackBar()
  }
  </code></pre>
  
  <p>How can I access the custom function in snack Bar actionBlock inside?</p>