<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDataDetectorTypes",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIDataDetectorTypes"
  },
  "title" : "UIDataDetectorTypes"
}
-->

# UIDataDetectorTypes

Constants that define the types of information to detect in text-based content.

```
struct UIDataDetectorTypes
```

## Topics

### Constants

[`UIDataDetectorTypePhoneNumber`](/documentation/UIKit/UIDataDetectorTypes/phoneNumber)

An option to detect strings with the format of a phone number.

[`UIDataDetectorTypeLink`](/documentation/UIKit/UIDataDetectorTypes/link)

An option to detect strings with the format of a URL.

[`UIDataDetectorTypeAddress`](/documentation/UIKit/UIDataDetectorTypes/address)

An option to detect strings with the format of an address.

[`UIDataDetectorTypeCalendarEvent`](/documentation/UIKit/UIDataDetectorTypes/calendarEvent)

An option to detect strings with the format of a calendar event.

[`UIDataDetectorTypeShipmentTrackingNumber`](/documentation/UIKit/UIDataDetectorTypes/shipmentTrackingNumber)

An option to detect strings with the format of a tracking number from a package delivery company.

[`UIDataDetectorTypeFlightNumber`](/documentation/UIKit/UIDataDetectorTypes/flightNumber)

An option to detect strings with the format of a flight number from an airline.

[`UIDataDetectorTypeLookupSuggestion`](/documentation/UIKit/UIDataDetectorTypes/lookupSuggestion)

An option to detect strings with the format of information that a person might want to look up.

[`UIDataDetectorTypeMoney`](/documentation/UIKit/UIDataDetectorTypes/money)

An option to detect strings with the format of an amount of money.

[`UIDataDetectorTypePhysicalValue`](/documentation/UIKit/UIDataDetectorTypes/physicalValue)

An option to detect strings with the format of a physical value, such as length or temperature.

[`UIDataDetectorTypeNone`](/documentation/UIKit/UIDataDetectorTypes/UIDataDetectorTypeNone)

An option to do no data detection.

[`UIDataDetectorTypeAll`](/documentation/UIKit/UIDataDetectorTypes/all)

An option to detect all available types of data.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/UIDataDetectorTypes/init(rawValue:))

Creates a data detector type with the specified raw value.

## Relationships

### Conforms To

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`Sendable`](/documentation/Swift/Sendable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)