Skip to content

Commit

Permalink
Add compile guards for Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
mluisbrown committed Feb 19, 2021
1 parent 1594f28 commit ce7a9d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/ComposableArchitecture/SwiftUI/Binding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ extension Reducer {
}
}

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

0 comments on commit ce7a9d1

Please sign in to comment.