Skip to content

Commit 652cb84

Browse files
Victor KostinVictor Kostin
authored andcommitted
Change class to struct
1 parent 3066521 commit 652cb84

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/FormView/FormView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public enum ErrorHideBehaviour {
2222
private class FormStateHandler: ObservableObject {
2323
@Published var fieldStates: [FieldState] = .empty
2424
@Published var currentFocusedFieldId: String = .empty
25-
@Published var formValidator = FormValidator()
25+
var formValidator = FormValidator()
2626

2727
func updateFieldStates(newStates: [FieldState]) {
2828
fieldStates = newStates

Sources/FormView/Validation/Validators/FormValidator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public class FormValidator: ObservableObject {
10+
public struct FormValidator {
1111
var onValidateRun: ((Bool) -> Bool)?
1212

1313
public init() {

0 commit comments

Comments
 (0)