Skip to content

Expand UIView touch area just like a charm

License

Notifications You must be signed in to change notification settings

lookpin/TouchAreaInsets

 
 

Repository files navigation

TouchAreaInsets

Build Status CocoaPods

Touch area insets for UIView.

At a Glance

The code below expands button's touch area for 20px.

let button = UIButton()
button.touchAreaInsets = UIEdgesInsets(top: 20, left: 20, bottom: 20, right: 20)

Installation

pod 'TouchAreaInsets'
.package(url: "https://github.com/lookpin/FlexLayout.git")

License

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

About

Expand UIView touch area just like a charm

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 48.8%
  • Swift 37.7%
  • Ruby 13.5%