You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/ComposableArchitecture/Internal/Deprecations.swift
+44-10Lines changed: 44 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,11 @@ import SwiftUI
7
7
8
8
#if compiler(>=5.4)
9
9
extensionBindingAction{
10
-
@available(*, deprecated, message:"Values are now wrapped in 'BindableState'")
10
+
@available(
11
+
*, deprecated,
12
+
message:
13
+
"For improved safety, bindable properties must now be wrapped explicitly in 'BindableState', and accessed via key paths to that 'BindableState', like '\\.$value'"
14
+
)
11
15
publicstaticfunc set<Value>(
12
16
_ keyPath:WritableKeyPath<Root,Value>,
13
17
_ value:Value
@@ -21,7 +25,11 @@ import SwiftUI
21
25
)
22
26
}
23
27
24
-
@available(*, deprecated, message:"Values are now wrapped in 'BindableState'")
28
+
@available(
29
+
*, deprecated,
30
+
message:
31
+
"For improved safety, bindable properties must now be wrapped explicitly in 'BindableState', and accessed via key paths to that 'BindableState', like '\\.$value'"
32
+
)
25
33
publicstaticfunc~=<Value>(
26
34
keyPath:WritableKeyPath<Root,Value>,
27
35
bindingAction:Self
@@ -31,8 +39,13 @@ import SwiftUI
31
39
}
32
40
33
41
extensionReducer{
34
-
@available(*, deprecated, message:"'Reducer.binding()' no longer takes an explicit extract function and instead relies on 'BindableAction'")
"For improved safety, bindable properties must now be wrapped explicitly in 'BindableState'. Bindings are now derived via dynamic member lookup to that 'BindableState' (for example, 'viewStore.$value'). For dynamic member lookup to be available, the view store's 'Action' type must also conform to 'BindableAction'."
@available(*, deprecated, message:"Values are now wrapped in 'BindableState'. Upgrade to Xcode 12.5 or greater for access to 'BindableState'.")
78
+
@available(
79
+
*, deprecated,
80
+
message:
81
+
"For improved safety, bindable properties must now be wrapped explicitly in 'BindableState', and accessed via key paths to that 'BindableState', like '\\.$value'. Upgrade to Xcode 12.5 or greater for access to 'BindableState'."
82
+
)
62
83
publicstaticfunc set<Value>(
63
84
_ keyPath:WritableKeyPath<Root,Value>,
64
85
_ value:Value
@@ -72,7 +93,11 @@ import SwiftUI
72
93
)
73
94
}
74
95
75
-
@available(*, deprecated, message:"Values are now wrapped in 'BindableState'. Upgrade to Xcode 12.5 or greater for access to 'BindableState'.")
96
+
@available(
97
+
*, deprecated,
98
+
message:
99
+
"For improved safety, bindable properties must now be wrapped explicitly in 'BindableState', and accessed via key paths to that 'BindableState', like '\\.$value'. Upgrade to Xcode 12.5 or greater for access to 'BindableState'."
100
+
)
76
101
publicstaticfunc~=<Value>(
77
102
keyPath:WritableKeyPath<Root,Value>,
78
103
bindingAction:Self
@@ -82,8 +107,13 @@ import SwiftUI
82
107
}
83
108
84
109
extensionReducer{
85
-
@available(*, deprecated, message:"'Reducer.binding()' no longer takes an explicit extract function and instead relies on 'BindableAction'. Upgrade to Xcode 12.5 or greater for access to 'Reducer.binding()' and 'BindableAction'.")
"'Reducer.binding()' no longer takes an explicit extract function and instead the reducer's 'Action' type must conform to 'BindableAction'. Upgrade to Xcode 12.5 or greater for access to 'Reducer.binding()' and 'BindableAction'."
@available(*, deprecated, message:"Bindings are now derived using 'BindableState' and 'BindableAction'. Upgrade to Xcode 12.5 or greater for access to 'BindableState' and 'BindableAction'.")
125
+
@available(
126
+
*, deprecated,
127
+
message:
128
+
"For improved safety, bindable properties must now be wrapped explicitly in 'BindableState'. Bindings are now derived via dynamic member lookup to that 'BindableState' (for example, 'viewStore.$value'). For dynamic member lookup to be available, the view store's 'Action' type must also conform to 'BindableAction'. Upgrade to Xcode 12.5 or greater for access to 'BindableState' and 'BindableAction'."
0 commit comments