You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attributes provide additional information about a declaration.
For example,
the @discardableResult attribute indicates that
a function may be called without using the result.
Creates an instance initialized with the given syntax node.
publicinit(_ node: AttributeSyntax)
Properties
name
The attribute name.
letname: String
An attribute's name is everything after the at-sign (@)
and before the argument clause.
For example,
the name of the attribute in the following declaration is "available":