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
- Host: GitHub
- URL: https://github.com/devxoul/touchareainsets
- Owner: devxoul
- License: mit
- Created: 2014-09-30T03:21:01.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-05-31T02:31:18.000Z (over 6 years ago)
- Last Synced: 2025-03-18T08:53:31.579Z (9 months ago)
- Topics: swift, touchareainsets, uiview
- Language: Objective-C
- Homepage:
- Size: 14.6 KB
- Stars: 51
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TouchAreaInsets
[](https://travis-ci.org/devxoul/TouchAreaInsets)
[](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.