Full width foot pill button
This commit is contained in:
parent
b1da7aaeed
commit
e373aa3b08
@ -24,9 +24,14 @@
|
|||||||
if bottomPadding == nil {
|
if bottomPadding == nil {
|
||||||
bottomPadding = PaddingDefaultVerticalSpacing
|
bottomPadding = PaddingDefaultVerticalSpacing
|
||||||
}
|
}
|
||||||
guard let _ = molecule as? ButtonModel,
|
guard !MVMCoreGetterUtility.isOnIPad(),
|
||||||
!MVMCoreGetterUtility.isOnIPad(),
|
horizontalAlignment == nil else { return }
|
||||||
horizontalAlignment == nil else { return }
|
|
||||||
horizontalAlignment = .fill
|
if let _ = molecule as? ButtonModel {
|
||||||
|
horizontalAlignment = .fill
|
||||||
|
} else if let model = molecule as? TwoButtonViewModel,
|
||||||
|
model.primaryButton == nil || model.secondaryButton == nil {
|
||||||
|
horizontalAlignment = .fill
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user