Skip to content

Commit ea51a97

Browse files
committed
wip: Declaration Attributes Used by Interface Builder
1 parent a911602 commit ea51a97

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

swift-6-beta.docc/ReferenceManual/Attributes.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,29 +2400,25 @@ struct ArrayBuilder {
24002400
序列方法使用 `warn_unqualified_access` 特性声明,
24012401
以帮助减少在 `Sequence` 扩展中尝试使用其中一个或另一个时的混淆。
24022402

2403-
### Declaration Attributes Used by Interface Builder
2403+
### Interface Builder 使用的声明特性
24042404

2405-
Interface Builder attributes are declaration attributes
2406-
used by Interface Builder to synchronize with Xcode.
2407-
Swift provides the following Interface Builder attributes:
2408-
`IBAction`, `IBSegueAction`, `IBOutlet`,
2409-
`IBDesignable`, and `IBInspectable`.
2410-
These attributes are conceptually the same as their
2411-
Objective-C counterparts.
2405+
Interface Builder 特性是用于 Interface Builder 的声明特性,
2406+
用于与 Xcode 同步。
2407+
Swift 提供了以下 Interface Builder 特性:
2408+
`IBAction``IBSegueAction``IBOutlet`
2409+
`IBDesignable``IBInspectable`
2410+
这些特性在概念上与其 Objective-C 对应项相同。
24122411

24132412
<!--
24142413
TODO: Need to link to the relevant discussion of these attributes in Objc.
24152414
-->
24162415

2417-
You apply the `IBOutlet` and `IBInspectable` attributes
2418-
to property declarations of a class.
2419-
You apply the `IBAction` and `IBSegueAction` attribute
2420-
to method declarations of a class
2421-
and the `IBDesignable` attribute to class declarations.
2416+
您将 `IBOutlet``IBInspectable` 特性应用于类的属性声明。
2417+
您将 `IBAction``IBSegueAction` 特性应用于类的方法声明,
2418+
并将 `IBDesignable` 特性应用于类声明。
24222419

2423-
Applying the `IBAction`, `IBSegueAction`, `IBOutlet`,
2424-
`IBDesignable`, or `IBInspectable` attribute
2425-
also implies the `objc` attribute.
2420+
应用 `IBAction`, `IBSegueAction`, `IBOutlet`,
2421+
`IBDesignable`, 或 `IBInspectable` 特性也意味着 `objc` 特性。
24262422

24272423
## Type Attributes
24282424

0 commit comments

Comments
 (0)