Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
31b6034b5f
commit
8d222317a0
@ -1130,6 +1130,7 @@ final class GameState: CasinoGameState {
|
|||||||
playerHadPair = false
|
playerHadPair = false
|
||||||
bankerHadPair = false
|
bankerHadPair = false
|
||||||
betResults = []
|
betResults = []
|
||||||
|
showResultBanner = false
|
||||||
currentPhase = .betting
|
currentPhase = .betting
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -84,6 +84,10 @@ public struct ChipSelectorView: View {
|
|||||||
.accessibilityElement(children: .contain)
|
.accessibilityElement(children: .contain)
|
||||||
.accessibilityLabel(String(localized: "Chip selector", bundle: .module))
|
.accessibilityLabel(String(localized: "Chip selector", bundle: .module))
|
||||||
.accessibilityHint(String(localized: "Double tap a chip to select bet amount", bundle: .module))
|
.accessibilityHint(String(localized: "Double tap a chip to select bet amount", bundle: .module))
|
||||||
|
.onAppear {
|
||||||
|
// Ensure valid chip selection when view appears
|
||||||
|
autoSelectAffordableChip(forBalance: balance)
|
||||||
|
}
|
||||||
.onChange(of: balance) { _, newBalance in
|
.onChange(of: balance) { _, newBalance in
|
||||||
// Auto-select highest affordable chip if current selection is now too expensive
|
// Auto-select highest affordable chip if current selection is now too expensive
|
||||||
autoSelectAffordableChip(forBalance: newBalance)
|
autoSelectAffordableChip(forBalance: newBalance)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user