DataScannerViewController.TextContentType
Types of text that a data scanner recognizes.
Declaration
enum TextContentTypeMentioned in
Overview
To configure a DataScannerViewController, pass one or more options into its initializer. For example, the following code creates a data scanner that detects textual references to money.
let recognizedDataTypes:Set<DataScannerViewController.RecognizedDataType> = [
.text(textContentType: .currency)
]
// Create the data scanner.
let dataScanner = DataScannerViewController(recognizedDataTypes: recognizedDataTypes)Topics
Identifying content types
DataScannerViewController.TextContentType.URLDataScannerViewController.TextContentType.dateTimeDurationDataScannerViewController.TextContentType.emailAddressDataScannerViewController.TextContentType.flightNumberDataScannerViewController.TextContentType.fullStreetAddressDataScannerViewController.TextContentType.shipmentTrackingNumberDataScannerViewController.TextContentType.telephoneNumberDataScannerViewController.TextContentType.currency