Full width foot pill button

This commit is contained in:
Scott Pfeil 2023-10-23 17:42:32 -04:00
parent b1da7aaeed
commit e373aa3b08

View File

@ -24,9 +24,14 @@
if bottomPadding == nil {
bottomPadding = PaddingDefaultVerticalSpacing
}
guard let _ = molecule as? ButtonModel,
!MVMCoreGetterUtility.isOnIPad(),
horizontalAlignment == nil else { return }
horizontalAlignment = .fill
guard !MVMCoreGetterUtility.isOnIPad(),
horizontalAlignment == nil else { return }
if let _ = molecule as? ButtonModel {
horizontalAlignment = .fill
} else if let model = molecule as? TwoButtonViewModel,
model.primaryButton == nil || model.secondaryButton == nil {
horizontalAlignment = .fill
}
}
}