apple / sample-cloudkit-sync-engine

MIT License
172 stars 13 forks source link

Update ContactsList.swift #11

Open JCKL opened 8 months ago

JCKL commented 8 months ago

When adding fields to Contact, the original implementation of listID didn't guarantee updates when additional fields were added to Contact unless the new fields were also added here which gets very clunky.

I think a better approach is to make the listID by combining self.id with self.userModificationDate.

This guarantees updates when new fields are added to Contact and I think is a better pattern for developers to implement in their own projects.