File tree 1 file changed +6
-4
lines changed
ViewEnvironmentUI/Sources
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,10 @@ public protocol ViewEnvironmentPropagating {
68
68
/// ``ViewEnvironmentPropagatingObject/environmentAncestorOverride`` property. If no override is present, the
69
69
/// return value will be `parent ?? presentingViewController`/`superview`.
70
70
///
71
- /// If the value of the ancestor is `nil`, by default, ancestors will not call notify this node of needing an
72
- /// environment update as it changes. This allows a node to effectively act as a root node when needed (e.g.
73
- /// bridging from other propagation systems like WorkflowUI).
71
+ /// If the value of the ancestor is `nil`, by default, ancestors will not notify this node of needing an
72
+ /// environment update as it changes. This allows a node to effectively detach from its ancestor and act as a root
73
+ /// node when needed, without any changes to the ancestor (e.g. bridging from other propagation systems like
74
+ /// WorkflowUI).
74
75
///
75
76
@_spi ( ViewEnvironmentWiring)
76
77
var environmentAncestor : ViewEnvironmentPropagating ? { get }
@@ -126,7 +127,8 @@ extension ViewEnvironmentPropagating {
126
127
127
128
/// Notifies all appropriate descendants that the environment needs update.
128
129
///
129
- /// If a descendant's ancestor is `nil` it will not be notified of needing update.
130
+ /// Ancestor-descendent bindings must be mutually agreed for this method to notify them. If a descendant's ancestor
131
+ /// is `nil` it will not be notified of needing update.
130
132
///
131
133
@_spi ( ViewEnvironmentWiring)
132
134
public func setNeedsEnvironmentUpdateOnAppropriateDescendants( ) {
You can’t perform that action at this time.
0 commit comments