Questions tagged [grdbcombine]

2 questions
2
votes
1 answer

How can I create a Swift Combine publisher from two publishers A and B where publisher B consumes the value from publisher A?

I want to create a Swift Combine publisher which achieves the following: The publisher should be triggered by changes in either Defaults (a UserDefaults Swift package) or changes in GRDB sqlite database values (using GRDBCombine). The updated…
Simen
  • 417
  • 6
  • 13
1
vote
0 answers

Using GRDBCombine to obtain unique items and display them in a list with SwiftUI

I have a sample test project at https://github.com/EricG-Personal/grdb_test.git In ContentView.swift, I currently have one list that shows all of the items in the Database. Below that, I would like another list that shows all of the unique 'names'…
ericg
  • 8,413
  • 9
  • 43
  • 77