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

#import "MGLMapView.h"

@implementation NSBundle (MGLAdditions)

void mgl_linkBundleCategory(){}

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

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

    return resourceBundlePath;
}

@end