Get full touch area / space on iOS screen

Is there a way to find the affected area / space on the screen (for example, if you hold your thumb on the screen, it needs to return the area of ​​the frame covered by the thumb)?

enter image description here

+4
source share
1 answer

New in iOS 8.0 is the majorRadius property UITouch, which should provide you with the data you need:

Use the value of this property to determine the touch size reported by the hardware. This value is an approximation and may vary depending on the amount specified in the majorRadiusTolerance property.

+2

Source: https://habr.com/ru/post/1537468/


All Articles