Reputation: 39323
I am making a Swift 3 module. So I need to know the bundle associated with a class in that module. In Swift 2 this was:
let bundle = NSBundle(forClass: self.dynamicType)
How do I appropriately do this in Swift 3?
Upvotes: 4
Views: 2225
Reputation: 57
let file = Bundle.main.path(forResource: "filename", ofType: "filetype")
Upvotes: -1