Swiftpack.co - Package - duynb92/DNLazyTableViewDelegate

DNLazyTableViewDelegate

Simply prevent monkey tapping on cell

How to use

public class YourViewController : UIViewController, DNLazyTableViewDelegate {
  //if you want to increase/decrease delayTime, override this method
  //leave it to have default value - 3 seconds
  public func delayTime() -> Int {
    return 3
  }

  public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
    //put this line anywhere in this method, or any other place 
    self.tableView(tableView, delayTapRowAt: indexPath)
  }
}

Installation

  • For iOS 8+ projects with CocoaPods:

    pod 'DNLazyTableViewDelegate'
    

    OR

    pod 'DNLazyTableViewDelegate', :git => 'https://github.com/duynb92/DNLazyTableViewDelegate.git'
    
  • For iOS 8+ projects with Carthage:

    github "duynb92/DNLazyTableViewDelegate"
    
  • Using Swift Package Manager:

    Coming soon

License

DNLazyTableViewDelegate is under MIT license. See the LICENSE file for more info.

Buy me a coffee

If this snippet really, i mean really, save your time.

Github

link
Stars: 3
Help us keep the lights on

Dependencies

Used By

Total: 0