From 516674f17e77d6587573274c8339595d4fbd0f8e Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 27 Mar 2024 14:39:53 -0500 Subject: [PATCH] removed unneccessary enum and replace with axis Signed-off-by: Matt Bruce --- .../Buttons/ButtonGroup/ButtonGroupConstants.swift | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/VDS/Components/Buttons/ButtonGroup/ButtonGroupConstants.swift b/VDS/Components/Buttons/ButtonGroup/ButtonGroupConstants.swift index 150b8928..3e02465c 100644 --- a/VDS/Components/Buttons/ButtonGroup/ButtonGroupConstants.swift +++ b/VDS/Components/Buttons/ButtonGroup/ButtonGroupConstants.swift @@ -6,21 +6,18 @@ // import Foundation +import UIKit struct ButtonGroupConstants { static let defaultSpace = 12.0 - enum ButtonSpacingAxis { - case horizontal, vertical - } - /// This will determine the spacing that will go between 2 ButtonBases either horizontally or vertically /// - Parameters: /// - axis: horizontal/vertical /// - primary: first ButtonBase /// - neighboring: next ButtonBase based off of axis /// - Returns: float value - static func getSpacing(for axis: ButtonSpacingAxis, with primary: ButtonBase, neighboring: ButtonBase) -> CGFloat { + static func getSpacing(for axis: NSLayoutConstraint.Axis, with primary: ButtonBase, neighboring: ButtonBase) -> CGFloat { //large button if let button = primary as? Button, button.size == .large {