#available
syntax do?Suggested approach: This syntax was introduced in Swift 2.0 to allow run-time version checking of features by OS version number. It allows you to target an older version of iOS while selectively limiting features available only in newer iOS versions, all carefully checked by the compiler to avoid human error.
Estimated difficulty: Intermediate
See the full list of iOS interview questions
Link copied to your pasteboard.