Skip to content

Commit 55e53f0

Browse files
committed
asdf
1 parent f15d594 commit 55e53f0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

tns-core-modules/ui/text-base/text-base.ios.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ export class TextBase extends TextBaseCommon {
205205
if (isTextView) {
206206
// UITextView's font seems to change inside.
207207
dict.set(NSFontAttributeName, this.nativeTextViewProtected.font);
208+
dict.set(NSForegroundColorAttributeName, this.nativeTextViewProtected.textColor);
208209
}
209210

210211
const result = NSMutableAttributedString.alloc().initWithString(source);

tns-core-modules/ui/text-view/text-view.ios.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export class TextView extends EditableTextBase implements TextViewDefinition {
114114
public _isEditing: boolean;
115115

116116
createNativeView() {
117+
debugger;
117118
const textView = NoScrollAnimationUITextView.new();
118119
if (!textView.font) {
119120
textView.font = UIFont.systemFontOfSize(12);
@@ -163,6 +164,7 @@ export class TextView extends EditableTextBase implements TextViewDefinition {
163164
}
164165

165166
private _refreshColor() {
167+
debugger;
166168
if (this._isShowingHint) {
167169
const placeholderColor = this.style.placeholderColor;
168170
const color = this.style.color;
@@ -173,7 +175,7 @@ export class TextView extends EditableTextBase implements TextViewDefinition {
173175
// Use semi-transparent version of color for back-compatibility
174176
this.nativeTextViewProtected.textColor = color.ios.colorWithAlphaComponent(0.22);
175177
} else {
176-
this.nativeTextViewProtected.textColor = UIColor.blackColor.colorWithAlphaComponent(0.22);
178+
this.nativeTextViewProtected.textColor = UIColor.labelColor;
177179
}
178180
} else {
179181
const color = this.style.color;
@@ -182,8 +184,8 @@ export class TextView extends EditableTextBase implements TextViewDefinition {
182184
this.nativeTextViewProtected.textColor = color.ios;
183185
this.nativeTextViewProtected.tintColor = color.ios;
184186
} else {
185-
this.nativeTextViewProtected.textColor = null;
186-
this.nativeTextViewProtected.tintColor = null;
187+
this.nativeTextViewProtected.textColor = UIColor.labelColor;
188+
this.nativeTextViewProtected.tintColor = UIColor.tintColor;
187189
}
188190
}
189191
}
@@ -329,4 +331,4 @@ export class TextView extends EditableTextBase implements TextViewDefinition {
329331
}
330332
}
331333

332-
TextView.prototype.recycleNativeView = "auto";
334+
TextView.prototype.recycleNativeView = "auto";

0 commit comments

Comments
 (0)