Kodeco Forums

Availability Attributes in Swift

Ever wonder how to support multiple versions of iOS or cross-platform code? Swift availability attributes makes this messy task much cleaner. Learn all about them in this tutorial.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/908-availability-attributes-in-swift

Nice job, Evan! I liked that you included macOS into it!

1 Like

Hello, Thanks for this tutorial. I was following along in my Xcode 8.3.2 and I noticed I wasn’t able to run on an iOS 8.4 simulator. Do I need to run this on a previous version of Xcode to be able to do this ?
Which exact version did you use ?

I just tested this project in Xcode 8.3.2, and it is running on iOS 8.4 simulator. Are you sure you download the simulator as instructed at the end of the “Adding Fallback Code” section?

Hi, I just checked again. It worked this time. Thanks for checking.

This tutorial is more than six months old so questions regarding it are no longer supported for the moment. We will update it as soon as possible. Thank you! :]