MOBFIRST-19249 : List Item Style Updates

Adding shortDivider and tallDivider style.
Removing header style.
This commit is contained in:
Khan, Arshad 2020-01-03 19:52:10 +05:30
parent 767ee787cb
commit c4fbf57890

View File

@ -47,8 +47,10 @@ import UIKit
switch styleString { switch styleString {
case "standard": case "standard":
styleStandard() styleStandard()
case "header": case "shortDivider":
styleHeader() styleShortDivider()
case "tallDivider":
styleTallDivider()
case "sectionFooter": case "sectionFooter":
styleFooter() styleFooter()
case "none": case "none":
@ -64,11 +66,18 @@ import UIKit
bottomSeparatorView?.style = .standard bottomSeparatorView?.style = .standard
} }
open func styleHeader() { open func styleTallDivider() {
topMarginPadding = 48 topMarginPadding = 48
bottomMarginPadding = 16 bottomMarginPadding = 16
topSeparatorView?.style = .none 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() { open func styleFooter() {