Contents

dataDetectorTypes

The types of data detectors to apply to the web view’s content.

Declaration

var dataDetectorTypes: WKDataDetectorTypes { get set }

Discussion

Data detectors add interactivity to web content by creating links for specially formatted text. For example, the WKDataDetectorTypeLink type causes the apple.com portion of the text “Visit apple.com” to become a link to the Apple website.

The default value of this property is WKDataDetectorTypeNone. For other possible values, see WKDataDetectorTypes.

See Also

Identifying data types