diff --git a/VDS/Components/Toggle/Toggle.swift b/VDS/Components/Toggle/Toggle.swift index 6252179b..cd3e3e4e 100644 --- a/VDS/Components/Toggle/Toggle.swift +++ b/VDS/Components/Toggle/Toggle.swift @@ -72,9 +72,9 @@ open class Toggle: Control, Changeable { // MARK: - Configuration Properties //-------------------------------------------------- // Sizes are from InVision design specs. - public let toggleSize = CGSize(width: 52, height: 24) + public let toggleSize = CGSize(width: 52, height: 28) public let toggleContainerSize = CGSize(width: 52, height: 44) - public let knobSize = CGSize(width: 20, height: 20) + public let knobSize = CGSize(width: 24, height: 24) private var toggleColorConfiguration = ControlColorConfiguration().with { $0.setSurfaceColors(VDSColor.elementsSecondaryOnlight, VDSColor.paletteGray44, forState: .normal) @@ -197,7 +197,7 @@ open class Toggle: Control, Changeable { //-------------------------------------------------- private func updateLabel() { - stackView.spacing = showText ? 12 : 0 + stackView.spacing = showText ? VDSLayout.Spacing.space3X.value : 0 if stackView.subviews.contains(label) { label.removeFromSuperview()