Skip to content

Commit 773cd54

Browse files
committed
form integration
Form integration
1 parent acfb2fd commit 773cd54

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

GoInfoGame/GoInfoGame/quests/SideWalkValidation/SideWalkValidationForm.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import SwiftUI
99

1010
struct SideWalkValidationForm: QuestForm ,View {
11+
var action: ((SideWalkValidationAnswer) -> Void)?
12+
1113
typealias AnswerClass = SideWalkValidationAnswer
1214
@State private var showAlert = false
1315
@State private var selectedAnswer : SideWalkValidationAnswer = SideWalkValidationAnswer.noAnswerSelected

GoInfoGame/GoInfoGame/quests/SidewalkSurface/SidewalkSurfaceForm.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import SwiftUI
99
// View representing a form for sidewalk surface selection
1010
struct SidewalkSurfaceForm: QuestForm ,View {
11+
var action: ((SidewalkSurfaceAnswer) -> Void)?
12+
1113
func applyAnswer(answer: SidewalkSurfaceAnswer) {
1214
}
1315
typealias AnswerClass = SidewalkSurfaceAnswer

0 commit comments

Comments
 (0)