Contents

isEnabled

A Boolean value that indicates whether the large content viewer is enabled on the device.

Declaration

class var isEnabled: Bool { get }

Discussion

It isn’t necessary to check this value before adding a UILargeContentViewerInteraction to a view, but it may be helpful if you need to adjust the behavior of coexisting gesture handlers. For example, a button with a long press handler might increase its long press duration so the user can read the text in the large content viewer first.

See Also

Detecting the large content viewer