<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPasteboard/DetectionPattern",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIPasteboardDetectionPattern"
  },
  "title" : "UIPasteboard.DetectionPattern"
}
-->

# UIPasteboard.DetectionPattern

An object that represents a pattern to detect for the pasteboard, such as a URL, text, or a number.

```
struct DetectionPattern
```

## Topics

### Detecting common patterns

[`UIPasteboardDetectionPatternCalendarEvent`](/documentation/UIKit/UIPasteboardDetectionPatternCalendarEvent)

A pattern that indicates the pasteboard detects a string that contains a calendar event.

[`UIPasteboardDetectionPatternEmailAddress`](/documentation/UIKit/UIPasteboardDetectionPatternEmailAddress)

A pattern that indicates the pasteboard detects a string that contains an email address.

[`UIPasteboardDetectionPatternFlightNumber`](/documentation/UIKit/UIPasteboardDetectionPatternFlightNumber)

A pattern that indicates the pasteboard detects a string that contains a flight number.

[`UIPasteboardDetectionPatternLink`](/documentation/UIKit/UIPasteboardDetectionPatternLink)

A pattern that indicates the pasteboard detects of a string that contains a URL.

[`UIPasteboardDetectionPatternMoneyAmount`](/documentation/UIKit/UIPasteboardDetectionPatternMoneyAmount)

A pattern that indicates the pasteboard detects a string that contains an amount of money.

[`UIPasteboardDetectionPatternNumber`](/documentation/UIKit/UIPasteboard/DetectionPattern/number)

A pattern that indicates the pasteboard contains a string that consists of a numeric value.

[`UIPasteboardDetectionPatternPhoneNumber`](/documentation/UIKit/UIPasteboardDetectionPatternPhoneNumber)

A pattern that indicates the pasteboard detects a string that contains a phone number.

[`UIPasteboardDetectionPatternPostalAddress`](/documentation/UIKit/UIPasteboardDetectionPatternPostalAddress)

A pattern that indicates the pasteboard detects a string that contains a postal address.

[`UIPasteboardDetectionPatternProbableWebSearch`](/documentation/UIKit/UIPasteboard/DetectionPattern/probableWebSearch)

A pattern that indicates the pasteboard contains a string suitable for use as a web search term.

[`UIPasteboardDetectionPatternProbableWebURL`](/documentation/UIKit/UIPasteboard/DetectionPattern/probableWebURL)

A pattern that indicates the pasteboard contains a string that consists of a URL.

[`UIPasteboardDetectionPatternShipmentTrackingNumber`](/documentation/UIKit/UIPasteboardDetectionPatternShipmentTrackingNumber)

A pattern that indicates the pasteboard detects a string that contains a parcel tracking number and carrier.

### Creating a detection pattern

[`init(rawValue:)`](/documentation/UIKit/UIPasteboard/DetectionPattern/init(rawValue:))

Creates a detection pattern to detect different types of content on the pasteboard.

## Relationships

### Conforms To

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

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

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

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

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

---

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)