I have this issue too, it's definitely a bug. when running in development environment the sync happens instantly from macOS to iOS, it's perfect just what you would expect. then the app is deployed to testflight or the App Store the sync only happens after the app comes to the foreground. further more the app is getting remote push notifications from iCloud that data has changed, but is for some reason choosing not to sync?
Topic:
App & System Services
SubTopic:
iCloud & Data