룰렛 프리셋 설정 성공 메시지 수정
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user