Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
545271e9bd
commit
547f690e3c
@ -93,8 +93,8 @@ struct DealerHandView: View {
|
|||||||
: .none,
|
: .none,
|
||||||
value: hand.cards.count
|
value: hand.cards.count
|
||||||
)
|
)
|
||||||
.overlay(alignment: .bottom) {
|
.overlay {
|
||||||
// Result badge - overlayed so it doesn't add height to the view
|
// Result badge - centered on cards
|
||||||
if let result = hand.cards.count >= 2 && showHoleCard ? handResultText : nil {
|
if let result = hand.cards.count >= 2 && showHoleCard ? handResultText : nil {
|
||||||
Text(result)
|
Text(result)
|
||||||
.font(.system(size: labelFontSize, weight: .black))
|
.font(.system(size: labelFontSize, weight: .black))
|
||||||
@ -106,7 +106,6 @@ struct DealerHandView: View {
|
|||||||
.fill(handResultColor)
|
.fill(handResultColor)
|
||||||
.shadow(color: .black.opacity(Design.Opacity.medium), radius: Design.Shadow.radiusMedium)
|
.shadow(color: .black.opacity(Design.Opacity.medium), radius: Design.Shadow.radiusMedium)
|
||||||
)
|
)
|
||||||
.offset(y: Design.Spacing.xLarge) // Position below cards
|
|
||||||
.transition(.scale.combined(with: .opacity))
|
.transition(.scale.combined(with: .opacity))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user