playbackGestureRecognizer

playbackGestureRecognizer

playbackGestureRecognizer Instance Property of PHLivePhotoView A gesture recognizer that controls playback of the Live Photo in the view.

var playbackGestureRecognizer: UIGestureRecognizer { get }

Discussion

The Live Photo view automatically creates and installs this gesture recognizer. Use this property to customize the gesture recognizer’s behavior. For example, you might use it in delegate methods that affect how it interacts with other gesture recognizers, or install it on a different view to ensure proper event handling in your app’s view hierarchy.