File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed
TSPL.docc/ReferenceManual Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,21 @@ Spelled as two words, not closed up or hyphenated.
111
111
112
112
See entry for * Swift* .
113
113
114
+ ## deprecation
115
+
116
+ In the language reference,
117
+ include a deprecation note at the start of a section
118
+ that describes a deprecated feature.
119
+ Use wording and markup like the following:
120
+
121
+ ```
122
+ > Deprecated:
123
+ > This attribute is deprecated;
124
+ > use the <doc:Attributes#main> attribute instead.
125
+ > In Swift 6,
126
+ > using this attribute will be an error.
127
+ ```
128
+
114
129
## definite initialization
115
130
116
131
Not “definitive initialization”.
Original file line number Diff line number Diff line change @@ -1122,8 +1122,14 @@ for a method marked with the `objc` attribute.
1122
1122
1123
1123
### NSApplicationMain
1124
1124
1125
+ > Deprecated:
1126
+ > This attribute is deprecated;
1127
+ > use the < doc:Attributes#main > attribute instead.
1128
+ > In Swift 6,
1129
+ > using this attribute will be an error.
1130
+
1125
1131
Apply this attribute to a class
1126
- to indicate that it's the application delegate.
1132
+ to indicate that it's the app delegate.
1127
1133
Using this attribute is equivalent to calling the
1128
1134
` NSApplicationMain(_:_:) ` function.
1129
1135
@@ -2342,8 +2348,14 @@ The imported module must be compiled with testing enabled.
2342
2348
2343
2349
### UIApplicationMain
2344
2350
2351
+ > Deprecated:
2352
+ > This attribute is deprecated;
2353
+ > use the < doc:Attributes#main > attribute instead.
2354
+ > In Swift 6,
2355
+ > using this attribute will be an error.
2356
+
2345
2357
Apply this attribute to a class
2346
- to indicate that it's the application delegate.
2358
+ to indicate that it's the app delegate.
2347
2359
Using this attribute is equivalent to calling the
2348
2360
` UIApplicationMain ` function and
2349
2361
passing this class's name as the name of the delegate class.
You can’t perform that action at this time.
0 commit comments