Skip to content

Commit f8d9b6e

Browse files
Add preconcurrency attribute to bind methods (#817)
1 parent 3daa6d4 commit f8d9b6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Nodes/Extensions/Binding.swift

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ extension Binding {
3030
/// - onChange: An escaping closure for the setter of the binding.
3131
///
3232
/// - Returns: A SwiftUI `Binding` instance.
33+
@preconcurrency
3334
@MainActor
3435
public static func bind(
3536
to value: Value,
@@ -59,6 +60,7 @@ extension Binding {
5960
/// - onChange: An optional (escaping) closure for the setter of the binding.
6061
///
6162
/// - Returns: A SwiftUI `Binding` instance.
63+
@preconcurrency
6264
@MainActor
6365
public static func bind(
6466
to value: Value,

0 commit comments

Comments
 (0)