From 0b2e1182d9ca4544b59a48ad66bdec017005c0ff Mon Sep 17 00:00:00 2001 From: Ardalan Samimi Date: Sat, 24 Jul 2021 01:20:04 +0200 Subject: [PATCH] Add conditional import --- Sources/Deta/Core/Deta.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Deta/Core/Deta.swift b/Sources/Deta/Core/Deta.swift index 6368171..347ba14 100644 --- a/Sources/Deta/Core/Deta.swift +++ b/Sources/Deta/Core/Deta.swift @@ -1,5 +1,8 @@ import Foundation import NetworkStack +#if canImport(FoundationNetworking) +import FoundationNetworking +#endif public final class Deta {