Skip to content

Commit c8c99aa

Browse files
authored
In card message: set the text color on the body text view (#3286)
* In card message: set the text color on the body text view * Fix bug where card messages in test app were showing up with two of the same buttons * Revert change to text color
1 parent 6db6cc7 commit c8c99aa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Firebase/InAppMessagingDisplay/Card/FIDCardViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ - (void)viewDidLoad {
105105
self.titleLabel.textColor = self.cardDisplayMessage.textColor;
106106

107107
self.bodyTextView.text = self.cardDisplayMessage.body;
108+
self.bodyTextView.textColor = self.cardDisplayMessage.textColor;
108109

109110
[self.primaryActionButton setTitle:self.cardDisplayMessage.primaryActionButton.buttonText
110111
forState:UIControlStateNormal];

InAppMessagingDisplay/Example/FiamDisplaySwiftExample/CardMessageViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class CardMessageViewController: CommonMessageTestVC {
6262
}
6363

6464
override var secondaryActionButton: InAppMessagingActionButton? {
65-
return writablePrimaryActionButton
65+
return writableSecondaryActionButton
6666
}
6767

6868
override var secondaryActionURL: URL? {

0 commit comments

Comments
 (0)