Support for @available

(wdb) #1

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, *))

0 Likes

(JohnMoshakis) #2

I use Oxygene and its available

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

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

0 Likes

(wdb) #3

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

0 Likes

(marc hoffman) #4

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

0 Likes

(RemObjects) #5

Thanks, logged as bugs://82356

0 Likes

(wdb) #6

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

0 Likes