1.
@attribute name
@attribute name(attribute arguments)
2.
if #available(platform name version,...,*) {
statements to execute if the APIs are available
} else {
fallback statements to execute if the APIs are unavailable
}
Excerpt From: Apple Inc. “The Swift Programming Language (Swift 3.1).” iBooks.