Skip to content

Commit 5a57075

Browse files
committed
Added deprecation for ViewStore
1 parent 88d3150 commit 5a57075

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

Sources/ComposableArchitecture/ViewStore.swift

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,21 @@ public final class ViewStore<State, Action>: ObservableObject {
4949
@available(
5050
*, deprecated,
5151
message:
52-
"""
53-
Consider using `.produced` instead, this variable is added for backward compatibility and will be removed in the next major release.
54-
"""
52+
"""
53+
Consider using `.produced` instead, this property exists for backwards compatibility and will be removed in the next major release.
54+
"""
5555
)
5656
public var producer: StoreProducer<State> { produced }
5757

58+
@available(
59+
*, deprecated,
60+
message:
61+
"""
62+
Consider using `.produced` instead, this property exists for backwards compatibility and will be removed in the next major release.
63+
"""
64+
)
65+
public var publisher: StoreProducer<State> { produced }
66+
5867
/// Initializes a view store from a store.
5968
///
6069
/// - Parameters:

0 commit comments

Comments
 (0)