How to use #available, @available, #unavailable in Swift
Published in
3 min readMay 23, 2023
Sometimes in our swift code, we may need to use the latest iOS APIs, which are unavailable in the previous iOS version. Occasionally we rename or deprecate our old class or method name and provide a new name. If you need to solve this problem, you can use Swift's #available, @available, or #unavailable features.