-
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 and updates documentation to include the new argument
- Loading branch information
1 parent
2336534
commit 552c4bf
Showing
7 changed files
with
67 additions
and
25 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, introduced: "5.0", deprecated: "7.0") | ||
@Available(MyPackage, introduced: "1.0", deprecated: "2.0") | ||
@Available(*, introduced: "1.0", deprecated: "2.0") | ||
} | ||
|
||
This applies to three different platforms! | ||
|
||
<!-- Copyright (c) 2022 Apple Inc and the Swift Project authors. All Rights Reserved. --> |