tonyarnold@mastodon.social
tonyarnold@mastodon.social

Does anyone have a recommendation for a Swift package for generating fake data to inject into my previews/SwiftData store?

|
Embed
Progress spinner
sanguish@iosdev.space
sanguish@iosdev.space

@tonyarnold I hate to say it, but I’ve used ChatGPT when I’ve needed random data

|
Embed
Progress spinner
BrendanThompson@mastodon.social
BrendanThompson@mastodon.social

@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

|
Embed
Progress spinner
tonyarnold@mastodon.social
tonyarnold@mastodon.social

@sanguish I am looking for something more integrated, so that I can dynamically populate randomised data on each run.

|
Embed
Progress spinner
ryanbooker@mastodon.social
ryanbooker@mastodon.social

@tonyarnold @sanguish I wonder if you could co-opt the generators in SwiftCheck to do this?

|
Embed
Progress spinner
In reply to
ryanbooker@mastodon.social
ryanbooker@mastodon.social

@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.

|
Embed
Progress spinner
finestructure@mastodon.social
finestructure@mastodon.social

@tonyarnold Quick search turned up this: swiftpackageindex.com/vadymmar

|
Embed
Progress spinner
tonyarnold@mastodon.social
tonyarnold@mastodon.social

@ryanbooker @sanguish I might be able to do that, but then nobody could read the tests 😭 I find SwiftCheck really hard to read.

|
Embed
Progress spinner
ryanbooker@mastodon.social
ryanbooker@mastodon.social

@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.

|
Embed
Progress spinner
TonyVladusich@mathstodon.xyz
TonyVladusich@mathstodon.xyz

@ryanbooker @tonyarnold @sanguish

You crazy scheming kids, always up to something! I’m calling everyone kids now as I fast approach 50.

|
Embed
Progress spinner
sanguish@iosdev.space
sanguish@iosdev.space

@TonyVladusich @ryanbooker @tonyarnold approaching 50? You’re just a baby!

|
Embed
Progress spinner