Merge branch 'develop' into feature/swiftified_textField
This commit is contained in:
commit
30bb405b3f
@ -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,13 +66,20 @@ 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 = .thin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open func styleShortDivider() {
|
||||||
|
topMarginPadding = 32
|
||||||
|
bottomMarginPadding = 16
|
||||||
|
topSeparatorView?.style = .none
|
||||||
|
bottomSeparatorView?.style = .thin
|
||||||
|
}
|
||||||
|
|
||||||
open func styleFooter() {
|
open func styleFooter() {
|
||||||
topMarginPadding = 24
|
topMarginPadding = 24
|
||||||
bottomMarginPadding = 0
|
bottomMarginPadding = 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user