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

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages