kCupertinoButtonTapMoveSlop top-level constant

double const kCupertinoButtonTapMoveSlop

The distance a button needs to be moved after being pressed for its opacity to change.

The opacity changes when the position moved is this distance away from the button. This variable is effective on mobile platforms. For desktop platforms, a distance of 0 is used.

This value was obtained through actual testing on an iOS 18.1 simulator.

Implementation

const double kCupertinoButtonTapMoveSlop = 70.0;