Does anyone have a recommendation for a Swift package for generating fake data to inject into my previews/SwiftData store?
Does anyone have a recommendation for a Swift package for generating fake data to inject into my previews/SwiftData store?
@tonyarnold I hate to say it, but I’ve used ChatGPT when I’ve needed random data
@tonyarnold I would like an answer to this too haha. I feel like the way I’m dealing with the preview and sample data is dodgy
@sanguish I am looking for something more integrated, so that I can dynamically populate randomised data on each run.
@tonyarnold @sanguish I wonder if you could co-opt the generators in SwiftCheck to do this?
@tonyarnold @sanguish I also vague remember the @pointfreeco gang writing a generator library in some episodes, but I have no idea if it was a general purpose tool they released, or just an example exercise.
@tonyarnold Quick search turned up this: https://swiftpackageindex.com/vadymmarkov/Fakery
@ryanbooker @sanguish I might be able to do that, but then nobody could read the tests 😭 I find SwiftCheck really hard to read.
@tonyarnold @sanguish pointfree also had some posts on generators. I have no idea if either is actually appropriate though.
But as an aside I generally feel like leveling up to read swiftcheck (or whatever tool in whatever context) is a good thing.
@ryanbooker @tonyarnold @sanguish
You crazy scheming kids, always up to something! I’m calling everyone kids now as I fast approach 50.