Disabling the Unviewed Indicator

Read & Unread Indicator

You can choose to disable the blue line at the bottom of the card which indicates whether or not the card has been viewed by setting the disableUnviewedIndicator property in ABKContentCardsTableViewController to YES.

Customizing the Unviewed Indicator

The Unviewed indicator can be accessed through the unviewedLineView property of the ABKBaseContentCardCell class. If you have a custom ABKContentCardsTableViewController subclass or are otherwise utilizing Braze’s UITableViewCell implementations, you should access the property before the cell is drawn.

For example, to set the color of the unviewed indicator to red:

1
((ABKBaseContentCardCell *)cell).unviewedLineView.backgroundColor = [UIColor redColor];
1
(card as? ABKBaseContentCardCell).unviewedLineView.backgroundColor = UIColor.red
WAS THIS PAGE HELPFUL?
New Stuff!