Gio Lodi 6/7/2016

How to make Swift methods unavailable

Read Original

This technical article details the use of Swift's @available declaration attribute to make specific methods or initializers unavailable to callers, preventing compilation. It covers use cases like subclassing NSObject and handling legacy code, provides syntax examples for Swift 2.2 and 3, and notes limitations with Objective-C interoperability.

How to make Swift methods unavailable

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser