Created
June 7, 2022 10:59
-
-
Save Vzhukov74/75b57eeae89788fc281ea4359571bfcc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch viewModel.gameState { | |
case .win: | |
WinMsgView(onNewGame: { | |
viewModel.onNextRiddle() | |
}) | |
.halfTransparentBg() | |
case .lose: | |
LoseMsgView(word: viewModel.riddle.answer, onNewGame: { | |
viewModel.onNextRiddle() | |
}) | |
.halfTransparentBg() | |
case .waitingForNewRidle: | |
EmptyView() | |
default: EmptyView() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment