File tree 1 file changed +4
-2
lines changed
ViewEnvironmentUI/Sources
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,8 @@ public typealias ViewEnvironmentUpdateObservation = (ViewEnvironment) -> Void
377
377
public final class ViewEnvironmentUpdateObservationLifetime {
378
378
/// Removes the observation.
379
379
///
380
- /// This is called in `deinit`.
380
+ /// The observation is removed when the lifetime is de-initialized if this function was not
381
+ /// called before then.
381
382
///
382
383
public func remove( ) {
383
384
guard let onRemove else {
@@ -482,7 +483,8 @@ public typealias ViewEnvironmentCustomization = (inout ViewEnvironment) -> Void
482
483
public final class ViewEnvironmentCustomizationLifetime {
483
484
/// Removes the observation.
484
485
///
485
- /// This is called in `deinit`.
486
+ /// The customization is removed when the lifetime is de-initialized if this function was not
487
+ /// called before then.
486
488
///
487
489
public func remove( ) {
488
490
onRemove ( )
You can’t perform that action at this time.
0 commit comments