summaryrefslogtreecommitdiff
path: root/platform/ios/NSBundle+MGLAdditions.m
blob: d8ba7dacc4cb77871be2390531845def9343e55b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#import "NSBundle+MGLAdditions.h"

#import "MGLMapView.h"

@implementation NSBundle (MGLAdditions)

+ (NSString *)mgl_resourceBundlePath
{
    NSString *resourceBundlePath = [[NSBundle bundleForClass:[MGLMapView class]] pathForResource:@"Mapbox" ofType:@"bundle"];

    if ( ! resourceBundlePath) resourceBundlePath = [[NSBundle mainBundle] bundlePath];

    return resourceBundlePath;
}

@end