-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding deprecated to @available directive
Adding deprecated argument to the directive @available
- Loading branch information
1 parent
0f9187a
commit a80b723
Showing
7 changed files
with
65 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...iftDocCTests/Test Bundles/AvailabilityBundle.docc/ComplexAvailableDeprecated.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Complex Available Deprecated Article | ||
|
||
@Metadata { | ||
@Available(macOS, introduced: "11.0", deprecated: "14.0") | ||
@Available(iOS, introduced: "11.0", deprecated: "17.0") | ||
@Available(watchOS, deprecated: "7.0") | ||
@Available(MyPackage, deprecated: "2.0") | ||
@Available(*, deprecated: "1.0") | ||
} | ||
|
||
This applies to three different platforms! | ||
|
||
<!-- Copyright (c) 2022 Apple Inc and the Swift Project authors. All Rights Reserved. --> |