--- title: Hit Test Slop layout: docs permalink: /docs/hit-test-slop.html prevPage: layout-transition-api.html nextPage: batch-fetching-api.html --- `ASDisplayNode` has a `hitTestSlop` property of type `UIEdgeInsets` that when set to a non-zero inset, increase the bounds for hit testing to make it easier to tap or perform gestures on this node. ASDisplayNode is the base class for all nodes, so this property is available on any of Texture's nodes.
-hitTest
and -pointInside
, so subclasses should call super if you override it and want hitTestSlop applied.
ASTextNode *textNode = [[ASTextNode alloc] init];
CGFloat padding = (44.0 - button.bounds.size.height)/2.0;
textNode.hitTestSlop = UIEdgeInsetsMake(-padding, 0, -padding, 0);
hitTestSlop
, check out the debug tool.