diff options
Diffstat (limited to 'platform/ios/NSBundle+MGLAdditions.m')
-rw-r--r-- | platform/ios/NSBundle+MGLAdditions.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/platform/ios/NSBundle+MGLAdditions.m b/platform/ios/NSBundle+MGLAdditions.m new file mode 100644 index 0000000000..b0ecf4656e --- /dev/null +++ b/platform/ios/NSBundle+MGLAdditions.m @@ -0,0 +1,16 @@ +#import "NSBundle+MGLAdditions.h" + +#import "MGLMapView.h" + +@implementation NSBundle (MGLAdditions) + ++ (NSString *)mgl_resourceBundlePath +{ + NSString *resourceBundlePath = [[NSBundle bundleForClass:[MGLMapView class]] pathForResource:@"MapboxGL" ofType:@"bundle"]; + + if ( ! resourceBundlePath) resourceBundlePath = [[NSBundle mainBundle] bundlePath]; + + return resourceBundlePath; +} + +@end |