iOS bundle
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
//
|
||||
|
||||
#import "DoricUtil.h"
|
||||
#import "DoricContext.h"
|
||||
|
||||
void DoricLog(NSString * _Nonnull format, ...) {
|
||||
va_list args;
|
||||
@@ -23,3 +24,9 @@ void DoricLog(NSString * _Nonnull format, ...) {
|
||||
b = ((colorValue >> 0) & 0xff)/255.0f;
|
||||
return [UIColor colorWithRed:r green:g blue:b alpha:a];
|
||||
}
|
||||
|
||||
NSBundle *DoricBundle() {
|
||||
NSBundle *bundle = [NSBundle bundleForClass:[DoricContext class]];
|
||||
NSURL *url = [bundle URLForResource:@"Doric" withExtension:@"bundle"];
|
||||
return [NSBundle bundleWithURL:url];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user