mrlegowatch / GarageStorageSwift

A Swift implementation of GarageStorage. Provides a convenient way to store any kind of data in a repository backed by Core Data.
MIT License
8 stars 1 forks source link

Replace Mappable with explicit Identifiable support #39

Open mrlegowatch opened 2 months ago

mrlegowatch commented 2 months ago

Devise a method to explicitly support Identifiable, in order to eliminate the Mappable type alias.

Currently, the Mappable protocol adds a requirement for an id property of type String, which is equivalent to Identifiable where ID == String. Some clients may wish to not declare conformance to Mappable, and instead declare conformance to Identifiable.