File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -451,11 +451,13 @@ export class Label extends LabelBase {
451
451
dict . set ( NSParagraphStyleAttributeName , paragraphStyle ) ;
452
452
}
453
453
const source = getTransformedText ( isNullOrUndefined ( this . text ) ? '' : `${ this . text } ` , this . textTransform ) ;
454
- if ( dict . size > 0 || isTextView ) {
455
- if ( isTextView && this . nativeTextViewProtected . font ) {
456
- // UITextView's font seems to change inside.
454
+ if ( dict . size > 0 ) {
455
+ if ( this . nativeTextViewProtected . font ) {
457
456
dict . set ( NSFontAttributeName , this . nativeTextViewProtected . font ) ;
458
457
}
458
+ if ( style . color ) {
459
+ dict . set ( NSForegroundColorAttributeName , style . color . ios ) ;
460
+ }
459
461
const result = NSMutableAttributedString . alloc ( ) . initWithString ( source ) ;
460
462
result . setAttributesRange ( dict as any , {
461
463
location : 0 ,
You can’t perform that action at this time.
0 commit comments