Ver código fonte

Update default value for fontsize in navigation title and subtitle (#5868)

Co-authored-by: Yogev Ben David <yogevbd@wix.com>
Mary Jenel 5 anos atrás
pai
commit
0741799281
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      lib/ios/RNNTitleViewHelper.m

+ 2
- 2
lib/ios/RNNTitleViewHelper.m Ver arquivo

104
 	subtitleLabel.backgroundColor = [UIColor clearColor];
104
 	subtitleLabel.backgroundColor = [UIColor clearColor];
105
 	subtitleLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth;
105
 	subtitleLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth;
106
 	
106
 	
107
-	NSDictionary* fontAttributes = [RNNFontAttributesCreator createWithFontFamily:[_subtitleOptions.fontFamily getWithDefaultValue:nil] fontSize:[_subtitleOptions.fontSize getWithDefaultValue:nil] fontWeight:[_subtitleOptions.fontWeight getWithDefaultValue:nil] color:[_subtitleOptions.color getWithDefaultValue:nil]];
107
+	NSDictionary* fontAttributes = [RNNFontAttributesCreator createWithFontFamily:[_subtitleOptions.fontFamily getWithDefaultValue:nil] fontSize:[_subtitleOptions.fontSize getWithDefaultValue:@(12)] fontWeight:[_subtitleOptions.fontWeight getWithDefaultValue:nil] color:[_subtitleOptions.color getWithDefaultValue:nil]];
108
 	[subtitleLabel setAttributedText:[[NSAttributedString alloc] initWithString:self.subtitle attributes:fontAttributes]];
108
 	[subtitleLabel setAttributedText:[[NSAttributedString alloc] initWithString:self.subtitle attributes:fontAttributes]];
109
 	
109
 	
110
 	
110
 	
136
 	
136
 	
137
 	titleLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth;
137
 	titleLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth;
138
 	
138
 	
139
-	NSDictionary* fontAttributes = [RNNFontAttributesCreator createWithFontFamily:[_titleOptions.fontFamily getWithDefaultValue:nil] fontSize:[_titleOptions.fontSize getWithDefaultValue:nil] fontWeight:[_titleOptions.fontWeight getWithDefaultValue:nil] color:[_subtitleOptions.color getWithDefaultValue:nil]];
139
+	NSDictionary* fontAttributes = [RNNFontAttributesCreator createWithFontFamily:[_titleOptions.fontFamily getWithDefaultValue:nil] fontSize:[_titleOptions.fontSize getWithDefaultValue:@(16)] fontWeight:[_titleOptions.fontWeight getWithDefaultValue:nil] color:[_subtitleOptions.color getWithDefaultValue:nil]];
140
 	[titleLabel setAttributedText:[[NSAttributedString alloc] initWithString:self.title attributes:fontAttributes]];
140
 	[titleLabel setAttributedText:[[NSAttributedString alloc] initWithString:self.title attributes:fontAttributes]];
141
 	
141
 	
142
 	CGSize labelSize = [titleLabel.text sizeWithAttributes:fontAttributes];
142
 	CGSize labelSize = [titleLabel.text sizeWithAttributes:fontAttributes];