You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we rely on custom built mechanics to pass data up the SwiftUI View hierarchy (e.g. for Validation and for data collected in Signup and Overview views).
Solution
SwiftUI has a dedicated mechanism to pass data up the view hierarchy using Preferences.
We should investigate how we could simplify the current infrastructure by using SwiftUI Preferences. This includes the following actions points:
One could replace the ValidationEngines type and introduce a mechanism for ValidationEngines to pass up a submit validation hook (e.g. a view having a submit/save/done button could collect these closures/or validation engine from it's subviews).
DataEntry views could pass up their input values using preferences. Though not sure if they are considered a "preference"(?).
Additional context
No response
Code of Conduct
I agree to follow this project's Code of Conduct and Contributing Guidelines
The text was updated successfully, but these errors were encountered:
Validation logic was moved out into SpeziValidation. See #35. PreferenceKeys were considered as a core mechanisms to move state around the view hierarchy.
Problem
Currently, we rely on custom built mechanics to pass data up the SwiftUI View hierarchy (e.g. for Validation and for data collected in Signup and Overview views).
Solution
SwiftUI has a dedicated mechanism to pass data up the view hierarchy using Preferences.
We should investigate how we could simplify the current infrastructure by using SwiftUI Preferences. This includes the following actions points:
ValidationEngines
type and introduce a mechanism for ValidationEngines to pass up a submit validation hook (e.g. a view having a submit/save/done button could collect these closures/or validation engine from it's subviews).Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: