iOS bundle
This commit is contained in:
@@ -10,3 +10,5 @@
|
||||
void DoricLog(NSString * _Nonnull format, ...);
|
||||
|
||||
UIColor* _Nonnull DoricColor(NSNumber * _Nonnull number);
|
||||
|
||||
NSBundle *DoricBundle();
|
||||
|
@@ -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