From c4fbf578907a066d7d50f4460248f933d4fdc256 Mon Sep 17 00:00:00 2001 From: "Khan, Arshad" Date: Fri, 3 Jan 2020 19:52:10 +0530 Subject: [PATCH] MOBFIRST-19249 : List Item Style Updates Adding shortDivider and tallDivider style. Removing header style. --- MVMCoreUI/Molecules/Items/TableViewCell.swift | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/MVMCoreUI/Molecules/Items/TableViewCell.swift b/MVMCoreUI/Molecules/Items/TableViewCell.swift index 9cf77ae1..f1fb3519 100644 --- a/MVMCoreUI/Molecules/Items/TableViewCell.swift +++ b/MVMCoreUI/Molecules/Items/TableViewCell.swift @@ -47,8 +47,10 @@ import UIKit switch styleString { case "standard": styleStandard() - case "header": - styleHeader() + case "shortDivider": + styleShortDivider() + case "tallDivider": + styleTallDivider() case "sectionFooter": styleFooter() case "none": @@ -64,11 +66,18 @@ import UIKit bottomSeparatorView?.style = .standard } - open func styleHeader() { + open func styleTallDivider() { topMarginPadding = 48 bottomMarginPadding = 16 topSeparatorView?.style = .none - bottomSeparatorView?.style = .thin + bottomSeparatorView?.style = .standard + } + + open func styleShortDivider() { + topMarginPadding = 32 + bottomMarginPadding = 16 + topSeparatorView?.style = .none + bottomSeparatorView?.style = .standard } open func styleFooter() {