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 4167b3c commit 3caaba5Copy full SHA for 3caaba5
Sources/ComposableArchitecture/SharedState/Shared.swift
@@ -353,7 +353,7 @@ extension Shared {
353
keyPath: self.keyPath.appending(path: keyPath)!
354
)
355
}
356
-
+
357
/// Constructs a read-only version of the shared value.
358
public var reader: SharedReader<Value> {
359
SharedReader(reference: self.reference, keyPath: self.keyPath)
Sources/ComposableArchitecture/SharedState/SharedReader.swift
@@ -37,7 +37,7 @@ public struct SharedReader<Value> {
37
public init(_ base: Shared<Value>) {
38
self = base.reader
39
40
41
/// Constructs a read-only shared value that remains constant.
42
///
43
/// This can be useful for providing ``SharedReader`` values to features in previews and tests:
0 commit comments