Google News
logo
Swift - Interview Questions
What is an attribute in Swift Programming?
An attribute is a construct used to provide additional information on the variable declaration and its type. It is represented with @ symbol. There are different arguments with different attributes.
 
Example :
@available(<attribute_name1>)

@available(<attribute_name1>)(<arguments>)

@available
Advertisement