mergesort / Boutique

✨ A magical persistence library (and so much more) for state-driven iOS and Mac apps ✨
https://build.ms/boutique/docs
MIT License
899 stars 43 forks source link

Add parity between Store convenience initializers and previewStore. #52

Closed connor-ricks closed 1 year ago

connor-ricks commented 1 year ago

In version 2.0.1. A convenience initializer was added for storing items that conformed to Identifiable where ID was a UUID. This was a small, but great improvement for developer convenience, however the previewStore was not updated to provide similar functionality.

This PR simply extends previewStore with two additional functions that eschew the need to specify an ID key path when the item is Identifiable where ID is either a String or a UUID

mergesort commented 1 year ago

This is a really nice quality of life improvement, thank you so much for making this change @connor-ricks!