Skip to content

DRY and simple solution to fire an action when a view is tapped on iOS.

License

Notifications You must be signed in to change notification settings

CodikaSolutions/Tap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tap

DRY and simple solution to fire an action when a view is tapped on iOS. Edit

We talk about this solution on this medium post.

Usage

On any UIView (or subclass of UIView) object you can use it like this:

Tap.on(anyView) { print("Tap on anyView") }

You can hold a reference to the Tap object to enable/disable it:

let tapOnAnyView = Tap.on(anyView) { print("Tap on anyView") }
tapOnAnyView.isEnabled = NO

About

DRY and simple solution to fire an action when a view is tapped on iOS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages