This is a demo app where it uses many to many relationship schema between Note and Tag models. It also use Query with custom predicate, sort order, and order by that can be updated by users in runtime.
CloudKit Sync is also enabled to enable data sync across user devices. Make sure to provide your own CloudKit container by registering for Apple Paid Member Developer account. Make sure to login using your iCloud account on devices to enable syncing.