Structure

WKDataDetectorTypes

The type of data detected.

Overview

To indicate that no data detection is to be performed, use an empty set of data detector types, indicated by the empty array literal, []. For example, let myDataDetector: WKDataDetectorTypes = [].

Topics

Constants

static var phoneNumber: WKDataDetectorTypes

Phone numbers are detected and turned into links.

static var link: WKDataDetectorTypes

URLs in text are detected and turned into links.

static var address: WKDataDetectorTypes

Addresses are detected and turned into links.

static var calendarEvent: WKDataDetectorTypes

Dates and times that are in the future are detected and turned into links.

static var trackingNumber: WKDataDetectorTypes

Tracking numbers are detected and turned into links.

static var flightNumber: WKDataDetectorTypes

Flight numbers are detected and turned into links.

static var spotlightSuggestion: WKDataDetectorTypes

Spotlight suggestions are detected and turned into links.

Deprecated
static var all: WKDataDetectorTypes

All of the above data types are turned into links when detected. Selecting this value will automatically include any new detection type that is added to this constant.

Relationships

Conforms To

See Also

Identifying Data Types

var dataDetectorTypes: WKDataDetectorTypes

The type of data detection desired.