Danil Danil - 1 year ago 98
Swift Question

swift equivalent of [NSBundle bundleForClass:[self class]]

What is swift equivalent of next code:

[NSBundle bundleForClass:[self class]]


I need load resources from test bundle (JSON data)

Answer Source

Never used, but I think it should be this:

NSBundle(forClass: self.dynamicType)