Skip to content

Commit

Permalink
Adjust placeholder text in number item and make submission date modif…
Browse files Browse the repository at this point in the history
…iable
  • Loading branch information
Victor Prüfer committed Jul 11, 2021
1 parent e9633ce commit 22c877d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion Sources/COFFEE/Model/Submission.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 22c877d

Please sign in to comment.