Adding new style sectionFooter for listItem molecule.

There are two places in MVA 3.0, where we need 24 pixel spacing on top, zero spacing on bottom and no separator.
This commit is contained in:
Khan, Arshad 2019-12-18 21:36:50 +05:30
parent ed25385d4b
commit 09a9a6577d

View File

@ -48,6 +48,8 @@ import UIKit
styleStandard()
case "header":
styleHeader()
case "sectionFooter":
styleFooter()
case "none":
styleNone()
default: break
@ -68,6 +70,13 @@ import UIKit
bottomSeparatorView?.style = .thin
}
open func styleFooter() {
topMarginPadding = 24
bottomMarginPadding = 0
topSeparatorView?.style = .none
bottomSeparatorView?.style = .none
}
open func styleNone() {
topMarginPadding = 0
bottomMarginPadding = 0