Skip to content

Commit 95e6aa1

Browse files
committed
Documentation
1 parent 81dc86a commit 95e6aa1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/LayoutInspector/DebugLayoutImpl.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ enum DidCallInspectLayout: EnvironmentKey {
9696
}
9797

9898
extension EnvironmentValues {
99+
/// Marker to signal that a valid LogStore environment object has been injected.
100+
/// Clients that use `@EnvironmentObject var logStore: LogStore` must verify that
101+
/// this value is true before accessing the environment object because it may be
102+
/// missing.
99103
var didCallInspectLayout: Bool {
100104
get { self[DidCallInspectLayout.self] }
101105
set { self[DidCallInspectLayout.self] = newValue }

0 commit comments

Comments
 (0)