Skip to content

Commit 5fc7bd5

Browse files
committed
Add deprecation note for {UI,NS}ApplicationMain.
1 parent 947fc48 commit 5fc7bd5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

TSPL.docc/ReferenceManual/Attributes.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,12 @@ for a method marked with the `objc` attribute.
920920

921921
### NSApplicationMain
922922

923+
> Note:
924+
> This attribute is deprecated;
925+
> use the <doc:Attributes:main> attribute instead.
926+
> In Swift 6,
927+
> using this attribute will be an error.
928+
923929
Apply this attribute to a class
924930
to indicate that it's the application delegate.
925931
Using this attribute is equivalent to calling the
@@ -2032,6 +2038,12 @@ The imported module must be compiled with testing enabled.
20322038

20332039
### UIApplicationMain
20342040

2041+
> Note:
2042+
> This attribute is deprecated;
2043+
> use the <doc:Attributes:main> attribute instead.
2044+
> In Swift 6,
2045+
> using this attribute will be an error.
2046+
20352047
Apply this attribute to a class
20362048
to indicate that it's the application delegate.
20372049
Using this attribute is equivalent to calling the

0 commit comments

Comments
 (0)