Skip to content

Commit b17e3c0

Browse files
authored
Merge pull request #1490 from mamabusi/deprecate_branch
2 parents f18215a + 0723136 commit b17e3c0

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Foundation/Date.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ extension Date : CustomPlaygroundQuickLookable {
261261
df.timeStyle = .short
262262
return df.string(from: self)
263263
}
264-
264+
265+
@available(*, deprecated, message: "Date.customPlaygroundQuickLook will be removed in a future Swift version")
265266
public var customPlaygroundQuickLook: PlaygroundQuickLook {
266267
return .text(summary)
267268
}

Foundation/NSRange.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ extension NSRange : CustomReflectable {
310310
}
311311

312312
extension NSRange : CustomPlaygroundQuickLookable {
313+
@available(*, deprecated, message: "NSRange.customPlaygroundQuickLook will be removed in a future Swift version")
313314
public var customPlaygroundQuickLook: PlaygroundQuickLook {
314315
return .range(Int64(location), Int64(length))
315316
}

Foundation/URL.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ extension URL : CustomStringConvertible, CustomDebugStringConvertible {
990990
}
991991

992992
extension URL : CustomPlaygroundQuickLookable {
993+
@available(*, deprecated, message: "URL.customPlaygroundQuickLook will be removed in a future Swift version")
993994
public var customPlaygroundQuickLook: PlaygroundQuickLook {
994995
return .url(absoluteString)
995996
}

0 commit comments

Comments
 (0)