<!--
{
  "documentType" : "article",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/uipasteboard-deprecated-symbols",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Deprecated symbols"
}
-->

# Deprecated symbols

Review unsupported symbols and their replacements.

## Topics

### Deprecated

[`var isPersistent: Bool`](/documentation/UIKit/UIPasteboard/isPersistent)

A Boolean value that indicates whether the pasteboard is persistent.

[`func setPersistent(Bool)`](/documentation/UIKit/UIPasteboard/setPersistent(_:))

A Boolean value that indicates whether the pasteboard is persistent.

[`func detectPatterns(for: Set<UIPasteboard.DetectionPattern>, completionHandler: (Result<Set<UIPasteboard.DetectionPattern>, any Error>) -> ())`](/documentation/UIKit/UIPasteboard/detectPatterns(for:completionHandler:)-5zlnd)

Determines whether the first pasteboard item matches the specified patterns, without notifying the user.

[`func detectPatterns(for: Set<UIPasteboard.DetectionPattern>, inItemSet: IndexSet?, completionHandler: (Result<[Set<UIPasteboard.DetectionPattern>], any Error>) -> ())`](/documentation/UIKit/UIPasteboard/detectPatterns(for:inItemSet:completionHandler:)-29iwn)

Determines whether pasteboard items match the specified patterns, without notifying the user.

[`func detectValues(for: Set<UIPasteboard.DetectionPattern>, completionHandler: (Result<[UIPasteboard.DetectionPattern : Any], any Error>) -> ())`](/documentation/UIKit/UIPasteboard/detectValues(for:completionHandler:)-9p2ff)

Determines whether the first pasteboard item matches the specified patterns, reading the contents if it finds a match.

[`func detectValues(for: Set<UIPasteboard.DetectionPattern>, inItemSet: IndexSet?, completionHandler: (Result<[[UIPasteboard.DetectionPattern : Any]], any Error>) -> ())`](/documentation/UIKit/UIPasteboard/detectValues(for:inItemSet:completionHandler:)-8y0iw)

Determines whether pasteboard items match the specified patterns, reading the contents if it finds a match.



---

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)