From d307f5bb343af2f1f02721205a4d2d491515c22d Mon Sep 17 00:00:00 2001 From: Mikhail Akopov Date: Sat, 6 Feb 2021 14:29:25 +0200 Subject: [PATCH] Define Bundle.module if not swift package --- SwiftRater/SwiftRater.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SwiftRater/SwiftRater.swift b/SwiftRater/SwiftRater.swift index 24ea8f4..8cce572 100644 --- a/SwiftRater/SwiftRater.swift +++ b/SwiftRater/SwiftRater.swift @@ -341,3 +341,11 @@ import StoreKit #endif } } + +#if !SWIFT_PACKAGE +extension Bundle { + static var module: Bundle { + Bundle(for: SwiftRater.self) + } +} +#endif