Skip to content

Commit

Permalink
A short disclaimer on visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Nov 4, 2023
1 parent 6fb6048 commit 8c2a3f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/SpeziValidation/ValidationModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ extension View {
/// }
/// ```
///
/// - Important: You shouldn't place multiple validate modifiers into the same view hierarchy branch. This creates
/// visibility problems in both direction. Both displaying validation results in the child view and receiving
/// validation state from the parent view.
///
/// - Parameters:
/// - value: The current value to validate.
/// - rules: An array of ``ValidationRule``s.
Expand Down Expand Up @@ -94,6 +98,10 @@ extension View {
/// }
/// ```
///
/// - Important: You shouldn't place multiple validate modifiers into the same view hierarchy branch. This creates
/// visibility problems in both direction. Both displaying validation results in the child view and receiving
/// validation state from the parent view.
///
/// - Parameters:
/// - value: The current value to validate.
/// - rules: An variadic array of ``ValidationRule``s.
Expand Down

0 comments on commit 8c2a3f8

Please sign in to comment.