From c4fbf578907a066d7d50f4460248f933d4fdc256 Mon Sep 17 00:00:00 2001 From: "Khan, Arshad" Date: Fri, 3 Jan 2020 19:52:10 +0530 Subject: [PATCH 1/2] 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() { From bf0b2ecb79006741993e4b58ae75a033e0cdf864 Mon Sep 17 00:00:00 2001 From: "Khan, Arshad" Date: Mon, 6 Jan 2020 16:49:03 +0530 Subject: [PATCH 2/2] changed separator style to thin --- MVMCoreUI/Molecules/Items/TableViewCell.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/Molecules/Items/TableViewCell.swift b/MVMCoreUI/Molecules/Items/TableViewCell.swift index f1fb3519..b1aa92a5 100644 --- a/MVMCoreUI/Molecules/Items/TableViewCell.swift +++ b/MVMCoreUI/Molecules/Items/TableViewCell.swift @@ -70,14 +70,14 @@ import UIKit topMarginPadding = 48 bottomMarginPadding = 16 topSeparatorView?.style = .none - bottomSeparatorView?.style = .standard + bottomSeparatorView?.style = .thin } open func styleShortDivider() { topMarginPadding = 32 bottomMarginPadding = 16 topSeparatorView?.style = .none - bottomSeparatorView?.style = .standard + bottomSeparatorView?.style = .thin } open func styleFooter() {