MOBFIRST-19249 : List Item Style Updates
Adding shortDivider and tallDivider style. Removing header style.
This commit is contained in:
parent
767ee787cb
commit
c4fbf57890
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user