룰렛 프리셋 설정 성공 메시지 수정

This commit is contained in:
Yu Sung
2024-02-24 03:57:45 +09:00
parent fec66fea56
commit 0584b17b76
4 changed files with 35 additions and 14 deletions

View File

@@ -13,7 +13,7 @@ struct RouletteSettingsView: View {
@StateObject var viewModel = RouletteSettingsViewModel()
@Binding var isShowing: Bool
let onComplete: (Bool) -> Void
let onComplete: (Bool, String) -> Void
var body: some View {
GeometryReader { proxy in
@@ -163,7 +163,7 @@ struct RouletteSettingsView: View {
.cornerRadius(10)
.onTapGesture {
viewModel.createOrUpdateRoulette {
onComplete($0)
onComplete($0, $1)
isShowing = false
}
}
@@ -217,6 +217,6 @@ struct RouletteSettingsView: View {
struct RouletteSettingsView_Previews: PreviewProvider {
static var previews: some View {
RouletteSettingsView(isShowing: .constant(true)) { _ in }
RouletteSettingsView(isShowing: .constant(true)) { _, _ in }
}
}