An open API service indexing awesome lists of open source software.

https://github.com/devxoul/touchareainsets

Expand UIView touch area just like a charm
https://github.com/devxoul/touchareainsets

swift touchareainsets uiview

Last synced: 9 months ago
JSON representation

Expand UIView touch area just like a charm

Awesome Lists containing this project

README

          

# TouchAreaInsets

[![Build Status](https://travis-ci.org/devxoul/TouchAreaInsets.svg?branch=master)](https://travis-ci.org/devxoul/TouchAreaInsets)
[![CocoaPods](http://img.shields.io/cocoapods/v/TouchAreaInsets.svg)](https://cocoapods.org/pods/TouchAreaInsets)

Touch area insets for UIView.

## At a Glance

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

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

## Installation

```ruby
pod 'TouchAreaInsets'
```

## License

TouchAreaInsets is under MIT license. See the [LICENSE](LICENSE) file for more info.