diff --git a/Source/AssetManager.swift b/Source/AssetManager.swift index edb6e52d..de10998b 100644 --- a/Source/AssetManager.swift +++ b/Source/AssetManager.swift @@ -4,10 +4,7 @@ import Photos extension Bundle { static func myResourceBundle() -> Bundle? { - let bundles = Bundle.allBundles - let bundlePaths = bundles.compactMap { $0.resourceURL?.appendingPathComponent("ImagePicker", isDirectory: false).appendingPathExtension("bundle") } - - return bundlePaths.compactMap({ Bundle(url: $0) }).first + return Bundle(for: ImagePickerController.self) } }