From d866a4e3c387ebea863c9c834b44d71663d69038 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 17 Mar 2023 15:35:55 -0500 Subject: [PATCH] updated buttongroup Signed-off-by: Matt Bruce --- VDS/Components/Buttons/ButtonGroup/ButtonGroup.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/VDS/Components/Buttons/ButtonGroup/ButtonGroup.swift b/VDS/Components/Buttons/ButtonGroup/ButtonGroup.swift index 7b6c8bdd..ae46f80b 100644 --- a/VDS/Components/Buttons/ButtonGroup/ButtonGroup.swift +++ b/VDS/Components/Buttons/ButtonGroup/ButtonGroup.swift @@ -172,9 +172,7 @@ open class ButtonGroup: View, UICollectionViewDataSource, UICollectionViewDelega cell.subviews.forEach { $0.removeFromSuperview() } cell.addSubview(button) cell.buttonable = button - button.pinLeading() - button.pinTrailing() - button.centerYAnchor.constraint(equalTo: cell.centerYAnchor).isActive = true + button.pinToSuperView() return cell }