- 룰렛 설정 완료 API 적용
- 룰렛 설정 완료 시 신호전송
This commit is contained in:
@@ -13,6 +13,7 @@ struct RouletteSettingsView: View {
|
||||
@StateObject var viewModel = RouletteSettingsViewModel()
|
||||
|
||||
@Binding var isShowing: Bool
|
||||
let onComplete: (Bool) -> Void
|
||||
|
||||
var body: some View {
|
||||
GeometryReader { proxy in
|
||||
@@ -132,6 +133,10 @@ struct RouletteSettingsView: View {
|
||||
.background(Color(hex: "3bb9f1"))
|
||||
.cornerRadius(10)
|
||||
.onTapGesture {
|
||||
viewModel.createOrUpdateRoulette {
|
||||
onComplete($0)
|
||||
isShowing = false
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(13.3)
|
||||
@@ -180,6 +185,6 @@ struct RouletteSettingsView: View {
|
||||
|
||||
struct RouletteSettingsView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
RouletteSettingsView(isShowing: .constant(true))
|
||||
RouletteSettingsView(isShowing: .constant(true)) { _ in }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user