mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Deprecated PlaygroundQuickLook and CustomPlaygroundQuickLookable.
Deprecated the `PlaygroundQuickLook` enum and `CustomPlaygroundQuickLookable` protocol. These are being targeted for removal in Swift 5, so we want to unconditionally deprecate them now to encourage use of `CustomPlaygroundDisplayConvertible` instead. This commit includes deprecated the various `CustomPlaygroundQuickLookable` conformances across the standard library and overlay libraries.
This commit is contained in:
@@ -447,6 +447,7 @@ extension String.UTF16View : CustomReflectable {
|
||||
|
||||
extension String.UTF16View : CustomPlaygroundQuickLookable {
|
||||
@_inlineable // FIXME(sil-serialize-all)
|
||||
@available(*, deprecated, message: "UTF16View.customPlaygroundQuickLook will be removed in a future Swift version")
|
||||
public var customPlaygroundQuickLook: PlaygroundQuickLook {
|
||||
return .text(description)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user