Skip to content

Commit 8be441a

Browse files
committed
App and Environment: use renamed: variant of availability
Indicate the renaming via the availability attribute rather than the custom message for a more homogeneous messaging.
1 parent 0fc43a2 commit 8be441a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftWin32/App and Environment/TraitCollection.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public enum UserInterfaceIdiom: Int {
6060
/// An interface designed for a phone.
6161
case phone
6262

63-
@available(*, deprecated, message: "Use UserInterfaceIdiom.tablet")
63+
@available(*, deprecated, renamed: "UserInterfaceIdiom.tablet")
6464
case pad
6565

6666
/// An interface designed for a TV.
@@ -69,7 +69,7 @@ public enum UserInterfaceIdiom: Int {
6969
/// An interface designed for a car display.
7070
case car
7171

72-
@available(*, deprecated, message: "Use UserInterfaceIdiom.desktop")
72+
@available(*, deprecated, renamed: "UserInterfaceIdiom.desktop")
7373
case mac
7474

7575
/// An interface designed for a tablet.

0 commit comments

Comments
 (0)