Files
MapLibreParticleLab/platform/darwin/src/NSURL+MLNAdditions.m
mwilsnd 20d9e1028c Platform flattening overhaul (#1393)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
2023-07-26 17:50:34 +02:00

15 lines
426 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#import "NSURL+MLNAdditions.h"
@implementation NSURL (MLNAdditions)
- (nullable NSURL *)mgl_URLByStandardizingScheme {
if (!self.scheme) {
// Relative file URL, already escaped (in order to create the NSURL).
// Assume a relative path into the application’s resource folder.
return [NSURL URLWithString:[@"asset://" stringByAppendingString:self.absoluteString]];
}
return self;
}
@end