Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Use @available For Deprecating and Obsoleting Old Code

Use @available For Deprecating and Obsoleting Old Code

Daily Coding Tip 180

Millie Sturgeon's avatar
Millie Sturgeon
Sep 22, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Use @available For Deprecating and Obsoleting Old Code
Share
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…

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.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share