Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

VincentNarbot/whenTapped

Repository files navigation

whenTapped

whenTapped is a Swift Library that is adding a closure to your UIButton, UILabel, UITextField, UIImageView.

Install

pod 'whenTapped', :git => 'https://github.com/VincentNarbot/whenTapped.git'

Use

import whenTapped
//UIButton
let button = UIButton()
button.whenTapped {
  print("button was pressed")
}

//UILabel
let label = UILabel()
label.whenTapped {
  print("label was pressed")
}

...

About

adding a closure to your UIButton, UILabel ...

Resources

License

Stars

Watchers

Forks

Packages

No packages published