From 1f5d6f46ac17e74d335b8fba668e5228510dbb8e Mon Sep 17 00:00:00 2001 From: Yim Lee Date: Fri, 16 Feb 2024 20:50:49 -0800 Subject: [PATCH] Add missing platform availability annotation (#26) It's missing for `DNSResolver` and results in build failing in iOS. Resolves https://github.com/apple/swift-async-dns-resolver/issues/25 --- Sources/AsyncDNSResolver/AsyncDNSResolver.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/AsyncDNSResolver/AsyncDNSResolver.swift b/Sources/AsyncDNSResolver/AsyncDNSResolver.swift index 9c459eb..98e866f 100644 --- a/Sources/AsyncDNSResolver/AsyncDNSResolver.swift +++ b/Sources/AsyncDNSResolver/AsyncDNSResolver.swift @@ -95,6 +95,7 @@ public struct AsyncDNSResolver { } /// API for running DNS queries. +@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public protocol DNSResolver { /// Lookup A records associated with `name`. ///