Support iteration in builtin SharedRepository implementations
:recycle: Current situation & Problem
Currently, we have no ability to access the elements in our built in shared repositories in a type-erased way. Specifically, we have no way to iterate over them.
:bulb: Proposed solution
This PR addresses this issue by adding Collection conformance for our two builtin Shared Repository types and extending the AnyRepositoryValue type.
:gear: Release Notes
Add Collection conformance to our build in shared repositories.
Support iteration in builtin SharedRepository implementations
:recycle: Current situation & Problem
Currently, we have no ability to access the elements in our built in shared repositories in a type-erased way. Specifically, we have no way to iterate over them.
:bulb: Proposed solution
This PR addresses this issue by adding
Collection
conformance for our two builtin Shared Repository types and extending theAnyRepositoryValue
type.:gear: Release Notes
Collection
conformance to our build in shared repositories.:heavy_plus_sign: Additional Information
Related PRs
This feature will be useful in https://github.com/StanfordSpezi/SpeziAccount/pull/7 for a Account Service to process modified account details.
Testing
Additionally unit tests were included.
Reviewer Nudging
--
Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: