Loading
Swift Forums
Swift Package Manager and supported platforms / avoiding `@available(macOS 10.15.0, *)`
Using Swift
spm
,
packagemanager
sspringer
(Stefan Springer)
August 26, 2022, 5:42am
9
…So:
As a first „rule“, use
available
and not
platforms
for a library.
If it is clear that your application or any application using your library will only be used in a certain context, you might use
platforms
to avoid the many
available
annotations that you else would have to use.
Improving the content on Swift.org
show post in topic