Type Safely

Type Safely

Use @available For Deprecating and Obsoleting Old Code

Daily Coding Tip 180

Millie Sturgeon's avatar
Millie Sturgeon
Sep 22, 2022
∙ Paid
please do not power off or unplug your machine
Photo by Mayer Tawfik on Unsplash

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:

  • iOS

  • iOSApplicationExtension

  • macOS

  • macOSApplicationExtension

  • macCatalyst

  • macCatalystApplicationExtension

  • watchOS

  • watchOSApplicationExtension

  • tvOS

  • tv…

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture