/TouchAreaInsets

Expand UIView touch area just like a charm

Primary LanguageObjective-CMIT LicenseMIT

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'

License

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