Skip to content

Commit ce7a9d1

Browse files
committed
Add compile guards for Linux.
1 parent 1594f28 commit ce7a9d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/ComposableArchitecture/SwiftUI/Binding.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ extension Reducer {
213213
}
214214
}
215215

216+
#if canImport(SwiftUI)
216217
extension ViewStore {
217218
/// Derives a binding from the store that mutates state at the given writable key path by wrapping
218219
/// a `BindingAction` with the store's action type.
@@ -243,3 +244,4 @@ extension ViewStore {
243244
)
244245
}
245246
}
247+
#endif

0 commit comments

Comments
 (0)