I have stored simply data for table view in UserDefaults for persistence. Now I am working on app for Apple Watch and I want to sync that data in UserDefaults with Apple Watch.
Sample use case for what I need. I add record on iPhone, than I close the app. For example in one hour I will open app on Apple Watch and I want to have that record from iPhone on Apple Watch.
Whats the best way how to sync that data? Thank you for your time!
For sharing data between iOS app and Watch, see the Sharing Data section of App Programming Guide for watchOS: