swift-book
swift-book copied to clipboard
Update the attached attribute [SE-0407]
Location
https://docs.swift.org/swift-book/documentation/the-swift-programming-language/attributes#attached
Description
SE-0407 adds conformances: for member role attached attributes. Also, correct two minor issues.
Correction
Append the following to the end of the second sentence in the first paragraph: and provide requisite supplemental information.
After the third sentence in the second bullet of the first list, insert: These macros can also add protocol conformance and a where clause. If the macro adds protocol conformances, include the conformances: argument and specify those protocols. The conformance list contains protocol names, type aliases that refer to conformance list items, or protocol compositions of conformance list items.
Append the word "macros" to the end of the title of the third bullet in the first list.