Use @available For Deprecating and Obsoleting Old Code
Daily Coding Tip 180
I thought it would be helpful to go through all the other things you can do with @available attribute.
You can specify as many versions of as many platforms as you want from this list:
iOSiOSApplicationExtensionmacOSmacOSApplicationExtensionmacCatalystmacCatalystApplicationExtensionwatchOSwatchOSApplicationExtensiontvOStv…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

