Swift の Attribute

前端之家收集整理的这篇文章主要介绍了Swift の Attribute前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
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.

猜你在找的Swift相关文章