Manos Chorianopoulos

add resourceBundle

......@@ -29,7 +29,7 @@ Pod::Spec.new do |spec|
# spec.vendored_frameworks = "SwiftWarplyFramework.framework"
spec.exclude_files = "Classes/Exclude"
spec.dependency 'RSBarcodes_Swift', '~> 5.1.1'
# spec.dependency 'RSBarcodes_Swift', '~> 5.1.1'
spec.dependency 'SwiftEventBus'
# spec.resource_bundles = { 'SwiftWarplyFramework' => ['SwiftWarplyFramework/**/*.{lproj,storyboard}'] }
# spec.resource_bundles = { 'SwiftWarplyFramework' => ['SwiftWarplyFramework/SwiftWarplyFramework/*.{png,jpeg,jpg,storyboard,xib,xcassets,json,ttf}'] }
......
......@@ -6,7 +6,7 @@
//
import UIKit
import RSBarcodes_Swift
// import RSBarcodes_Swift
import AVFoundation
// import SwiftEventBus
......
......@@ -9,4 +9,10 @@ import Foundation
public class MyEmptyClass {
static func resourceBundle() -> Bundle? {
let frameworkBundle = Bundle(for: MyEmptyClass.self)
let bundleURL = frameworkBundle.resourceURL?.appendingPathComponent("ResourcesBundle.bundle")
let resourceBundle = Bundle(url: bundleURL!)
return resourceBundle
}
}
......