I am working on a framework for iOS, which comes with some datafiles. To load them into a Dictionary I do something like this:
Dictionary
public func loadP
Simply specify the class name of the resource and below function will give you the Bundle object with which the class is associated with, so if class is associated with a framework it will give bundle of the framework.
let bundle = Bundle(for: .self)