feat:default set text aligment to center
This commit is contained in:
parent
c8feaa37fc
commit
7d6ad70682
@ -23,10 +23,13 @@
|
||||
#import "DoricTextNode.h"
|
||||
#import "DoricUtil.h"
|
||||
#import "DoricGroupNode.h"
|
||||
#import "Doric.h"
|
||||
|
||||
@implementation DoricTextNode
|
||||
- (UILabel *)build {
|
||||
return [[UILabel alloc] init];
|
||||
return [[[UILabel alloc] init] also:^(UILabel *it) {
|
||||
it.textAlignment = NSTextAlignmentCenter;
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)blendView:(UILabel *)view forPropName:(NSString *)name propValue:(id)prop {
|
||||
|
Reference in New Issue
Block a user