comment update

This commit is contained in:
Pfeil, Scott Robert 2020-07-28 10:47:52 -04:00
parent e236e9c3a5
commit 02ab457c1a

View File

@ -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)