UIPasteboard url property does not work properly with universal clipboard
Originator: | dcorderoramirez | ||
Number: | rdar://42807333 | Date Originated: | August 1 2018 |
Status: | Open | Resolved: | |
Product: | iOS + SDK | Product Version: | iOS 11.4.1 (15G77) |
Classification: | Reproducible: | Always |
Area: UIKit Summary: When a URL is saved into the clipboard from another device (universal clipboard), the url property of UIPasteboard returns nil even though the clipboard contains a valid URL available through the `string` property. Steps to Reproduce: 1. Copy a URL from one device 2. From a different device try to access UIPasteboard.general.url A real case scenario of this issue can be found in the following link https://github.com/xmollv/Llitgi/pull/27 Expected Results: UIPasteboard.general.url works on the same way when using universal clipboard than when using local clipboard. That means returning the item saved into the clipboard as URL when using the url property. Actual Results: UIPasteboard.general.url returns nil when the clipboard contains a URL copied from a different device (universal clipboard) Version/Build: Xcode version 9.4.1 (9F2000) iOS 11.4.1 (15G77)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!