diff --git a/.swiftpm/xcode/package.xcworkspace/xcuserdata/vico.xcuserdatad/UserInterfaceState.xcuserstate b/.swiftpm/xcode/package.xcworkspace/xcuserdata/vico.xcuserdatad/UserInterfaceState.xcuserstate index 1bac2d8..b4ff16a 100644 Binary files a/.swiftpm/xcode/package.xcworkspace/xcuserdata/vico.xcuserdatad/UserInterfaceState.xcuserstate and b/.swiftpm/xcode/package.xcworkspace/xcuserdata/vico.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Sources/COFFEE/Model/Submission.swift b/Sources/COFFEE/Model/Submission.swift index 26975e6..20a48e4 100644 --- a/Sources/COFFEE/Model/Submission.swift +++ b/Sources/COFFEE/Model/Submission.swift @@ -10,7 +10,7 @@ import Foundation /// A submission groups multiple item responses public struct Submission: Codable { /// The date of the submission - public let submissionDate: Date + public var submissionDate: Date /// The responses to the survey questions. For each valid response, there is one response item. public var responses: [ItemResponse] /// An optional settable identifier to identify the respondent (e.g. a user id) diff --git a/Sources/COFFEE/Views/SurveyView/SurveyItemViews/NumberItemView.swift b/Sources/COFFEE/Views/SurveyView/SurveyItemViews/NumberItemView.swift index b47e1b6..87f6b90 100644 --- a/Sources/COFFEE/Views/SurveyView/SurveyItemViews/NumberItemView.swift +++ b/Sources/COFFEE/Views/SurveyView/SurveyItemViews/NumberItemView.swift @@ -16,7 +16,7 @@ struct NumberItemView: View { @EnvironmentObject var surveyViewModel: SurveyView.ViewModel var body: some View { - TextField("Hey", text: viewModel.numberProxy) + TextField("0", text: viewModel.numberProxy) .keyboardType(.decimalPad) .onChange(of: viewModel.numberProxy.wrappedValue, perform: { value in surveyViewModel.objectWillChange.send()