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
canImport()compiler condition do?
finalkeyword do, and why would you want to use it?
Link copied to your pasteboard.