comment update
This commit is contained in:
parent
e236e9c3a5
commit
02ab457c1a
@ -61,10 +61,7 @@ import Foundation
|
|||||||
|
|
||||||
/// Convenience function to set common values based on style. We default to standard if not set.
|
/// Convenience function to set common values based on style. We default to standard if not set.
|
||||||
open func setByStyle() {
|
open func setByStyle() {
|
||||||
guard let style = style else {
|
let style = self.style ?? .standard
|
||||||
set(topPadding: Padding.Component.VerticalMarginSpacing, bottomPadding: Padding.Component.VerticalMarginSpacing)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
switch style {
|
switch style {
|
||||||
case .standard:
|
case .standard:
|
||||||
set(topPadding: Padding.Component.VerticalMarginSpacing, bottomPadding: Padding.Component.VerticalMarginSpacing)
|
set(topPadding: Padding.Component.VerticalMarginSpacing, bottomPadding: Padding.Component.VerticalMarginSpacing)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user