From 5e31a07316010676cf3b2cfc10b458ac6df6f08a Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Fri, 1 Feb 2019 09:53:36 -0500 Subject: [PATCH] setup so that server has to send to override, --- MVMCoreUI/Molecules/TopLabelsView.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Molecules/TopLabelsView.m b/MVMCoreUI/Molecules/TopLabelsView.m index 028fcf32..5452871f 100644 --- a/MVMCoreUI/Molecules/TopLabelsView.m +++ b/MVMCoreUI/Molecules/TopLabelsView.m @@ -221,7 +221,10 @@ self.headlineLabel.textColor = textColor; self.messageLabel.textColor = textColor; self.backgroundColor = [self colorForBackgroundWithJSON:json]; - self.separatorView.hidden = ![json boolForKey:@"showBottomLine"]; + NSNumber *showBottomLine = [json objectForKey:@"showBottomLine" ofType:[NSNumber class]]; + if (showBottomLine) { + self.separatorView.hidden = ![showBottomLine boolValue]; + } } - (nonnull UIColor *)colorForTopLabelsWithJSON:(nullable NSDictionary *)json {