Support for @available

I was wondering if it’s possible to support the common @available-attribute as this is frequently used in existing Swift code and would avoid a big code change due to the use of @available like: @available(iOS 8.0, *))

I use Oxygene and its available

https://docs.elementscompiler.com/API/SystemFunctions/Available/

It does mention that in Swift it supports Available and #Available

Yes, I noticed that it’s related but this @available works a bit differently:

Hmm, when was that added? I’ve never seen this come thru Swift Evolution… I’ll log.

Thanks, logged as bugs://82356

No idea, SnapKit which I tried to get running through Silver used it.

bugs://82356 got closed with status fixed.

1 Like