Skip to content

Commit ea592db

Browse files
committed
Resolve merge issue
1 parent 6b43310 commit ea592db

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

Sources/ComposableArchitecture/Internal/Deprecations.swift

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*,
1717
deprecated,
1818
message:
19-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
19+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
2020
)
2121
@dynamicMemberLookup
2222
@propertyWrapper
@@ -49,7 +49,7 @@ public struct BindingViewState<Value> {
4949
*,
5050
deprecated,
5151
message:
52-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
52+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
5353
)
5454
extension BindingViewState: Equatable where Value: Equatable {
5555
public static func == (lhs: Self, rhs: Self) -> Bool {
@@ -61,7 +61,7 @@ extension BindingViewState: Equatable where Value: Equatable {
6161
*,
6262
deprecated,
6363
message:
64-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
64+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
6565
)
6666
extension BindingViewState: Hashable where Value: Hashable {
6767
public func hash(into hasher: inout Hasher) {
@@ -74,7 +74,7 @@ extension BindingViewState: Hashable where Value: Hashable {
7474
*,
7575
deprecated,
7676
message:
77-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
77+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
7878
)
7979
extension BindingViewState: CustomReflectable {
8080
public var customMirror: Mirror {
@@ -86,7 +86,7 @@ extension BindingViewState: CustomReflectable {
8686
*,
8787
deprecated,
8888
message:
89-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
89+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
9090
)
9191
extension BindingViewState: CustomDumpRepresentable {
9292
public var customDumpValue: Any {
@@ -98,7 +98,7 @@ extension BindingViewState: CustomDumpRepresentable {
9898
*,
9999
deprecated,
100100
message:
101-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
101+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
102102
)
103103
extension BindingViewState: CustomDebugStringConvertible
104104
where Value: CustomDebugStringConvertible {
@@ -111,7 +111,7 @@ where Value: CustomDebugStringConvertible {
111111
*,
112112
deprecated,
113113
message:
114-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
114+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
115115
)
116116
@dynamicMemberLookup
117117
@propertyWrapper
@@ -2511,7 +2511,7 @@ extension Store {
25112511
*,
25122512
deprecated,
25132513
message:
2514-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
2514+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
25152515
)
25162516
@propertyWrapper
25172517
public struct BindingState<Value> {
@@ -2611,7 +2611,7 @@ extension BindingState: Sendable where Value: Sendable {}
26112611
*,
26122612
deprecated,
26132613
message:
2614-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
2614+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
26152615
)
26162616
extension BindableAction {
26172617
public static func set<Value: Equatable & Sendable>(
@@ -2626,7 +2626,7 @@ extension BindableAction {
26262626
*,
26272627
deprecated,
26282628
message:
2629-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
2629+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
26302630
)
26312631
extension BindingAction {
26322632
public static func set<Value: Equatable & Sendable>(
@@ -2658,7 +2658,7 @@ extension BindingAction {
26582658
*,
26592659
deprecated,
26602660
message:
2661-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
2661+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
26622662
)
26632663
extension BindingAction.AllCasePaths {
26642664
public subscript<Value: Equatable & Sendable>(
@@ -2689,7 +2689,7 @@ extension BindingReducer {
26892689
*,
26902690
deprecated,
26912691
message:
2692-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
2692+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
26932693
)
26942694
extension BindingViewStore {
26952695
public subscript<Value: Equatable & Sendable>(
@@ -2732,7 +2732,7 @@ extension BindingViewStore {
27322732
*,
27332733
deprecated,
27342734
message:
2735-
"Deriving bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
2735+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
27362736
)
27372737
extension ViewStore where ViewAction: BindableAction, ViewAction.State == ViewState {
27382738
public subscript<Value: Equatable & Sendable>(
@@ -3421,6 +3421,18 @@ extension TestStore {
34213421
}
34223422
}
34233423

3424+
@available(
3425+
*,
3426+
deprecated,
3427+
message:
3428+
"Derive bindings directly from stores using '@ObservableState'. See the following migration guide for more information: https://swiftpackageindex.com/pointfreeco/swift-composable-architecture/main/documentation/composablearchitecture/migratingto1.7#BindingState"
3429+
)
3430+
extension TestStore where Action: BindableAction, State == Action.State {
3431+
public var bindings: BindingViewStore<State> {
3432+
self._bindings(action: AnyCasePath())
3433+
}
3434+
}
3435+
34243436
@available(
34253437
*,
34263438
message:

0 commit comments

Comments
 (0)