We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3066521 commit 652cb84Copy full SHA for 652cb84
2 files changed
Sources/FormView/FormView.swift
@@ -22,7 +22,7 @@ public enum ErrorHideBehaviour {
22
private class FormStateHandler: ObservableObject {
23
@Published var fieldStates: [FieldState] = .empty
24
@Published var currentFocusedFieldId: String = .empty
25
- @Published var formValidator = FormValidator()
+ var formValidator = FormValidator()
26
27
func updateFieldStates(newStates: [FieldState]) {
28
fieldStates = newStates
Sources/FormView/Validation/Validators/FormValidator.swift
@@ -7,7 +7,7 @@
7
8
import Foundation
9
10
-public class FormValidator: ObservableObject {
+public struct FormValidator {
11
var onValidateRun: ((Bool) -> Bool)?
12
13
public init() {
0 commit comments