You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.
If maxPlayerCount has to be provided later, then there is no solution yet and you'd better use raw publishers instead of DatabasePublished.
Generally speaking, I have never tried to feed @DatabasePublished from the SwiftUI environment. @FetchRequest support this, but I have barely scratched the surface in this SO question: https://stackoverflow.com/questions/57668997
I'm still not sure to use SwiftUI for my new app (tvOS) because i wanted to reuse a lot of code from iOS version and, as i can see, It won't always be possible... It's maybe too early !
Cool! You know, @DatabasePublished is pretty much in flux, and is the most experimental part of the lib. We'll have to really live with Combine and SwitfUI before we know what we need.
Hi Gwendal,
I'm playing with GRDBCombine, but i have one question:
In the sample code, in
HallOfFameViewModel
, you have hardcoded the varmaxPlayerCount
:How i can make this var dynamic so i can use it like
HallOfFameViewModel(maxPlayerCount: 50)
?When i try to make it dynamic, i got an error (which is normal):
Cannot use instance member 'maxPlayerCount' within property initializer; property initializers run before 'self' is available
The text was updated successfully, but these errors were encountered: