How to make Swift methods unavailable
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser