Skip to content

Instantly share code, notes, and snippets.

@am-MongoDB
Created December 17, 2021 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save am-MongoDB/95baf1a117ff02ef756b8a4a21349638 to your computer and use it in GitHub Desktop.
Save am-MongoDB/95baf1a117ff02ef756b8a4a21349638 to your computer and use it in GitHub Desktop.
struct SoftDecisionView: View {
@ObservedResults(Decisions.self) var unfilteredDecisions
let isSoft = true
var body: some View {
let decisions = unfilteredDecisions.where { $0.isSoft == isSoft }
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment