We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81dc86a commit 95e6aa1Copy full SHA for 95e6aa1
Sources/LayoutInspector/DebugLayoutImpl.swift
@@ -96,6 +96,10 @@ enum DidCallInspectLayout: EnvironmentKey {
96
}
97
98
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.
103
var didCallInspectLayout: Bool {
104
get { self[DidCallInspectLayout.self] }
105
set { self[DidCallInspectLayout.self] = newValue }
0 commit comments