This adds ifExists: to the subscript methods that return an Optional. This will help, if/when we move forward with Collection conformance for TableViewModel and CollectionViewModel because Collection subscript methods have a non-Optional return type.
Checklist
[x] All tests pass. Demo project builds and runs.
[x] I added tests, an experiment, or detailed why my change isn't tested.
[x] I added an entry to the CHANGELOG.md for any breaking changes, enhancements, or bug fixes.
Changes in this pull request
This adds
ifExists:
to the subscript methods that return anOptional
. This will help, if/when we move forward withCollection
conformance forTableViewModel
andCollectionViewModel
becauseCollection
subscript methods have a non-Optional
return type.Checklist
CHANGELOG.md
for any breaking changes, enhancements, or bug fixes.