Closed minacle closed 3 years ago
Hi, may I ask what the use for the availability check ?
Hi, may I ask what the use for the availability check ?
I read the document.
@available(iOS 8.0, macOS 10.10, tvOS 9.0, watchOS 2.0, *)
@available(iOS 8.0, macOS 10.10, tvOS 9.0, watchOS 2.0, *)
@available(iOS 2.0, macOS 10.0, tvOS 9.0, watchOS 2.0, *)
@available(iOS 2.0, macOS 10.5, tvOS 9.0, watchOS 2.0, *)
@available(iOS 2.0, macOS 10.0, tvOS 9.0, watchOS 2.0, *)
@available(iOS 2.0, macOS 10.5, tvOS 9.0, watchOS 2.0, *)
I meant in the commit context,
let package = Package(
name: "AnyCodable",
platforms: [ .iOS(.v8), .macOS(.v10_10), .tvOS(.v9), .watchOS(.v2)]
would do the same job as the platforms array is not limiting undeclared targets.
@AlexisQapa
In really, I was not sure about that, so I did it so.
But, thank you for the information! Now the code is more clear. 🥳
Thank you!
This resolves #53.