Swift: How to load a Bundle from a static method
Swift 5
static func foo() {
let bundle = Bundle(for: Self.self)
}
You can use ClassName.self.
class SomeClass
static func foo() {
let bundle = Bundle(for: SomeClass.self)
}
}