CloudKit for iOS and tvOS implementation for Blueprint Only Projects

I run into a problem. If no internet connection, the game save to local, and when turn back net, its loading back the icloud save, and lost all offline progress.

Do you have any idea to fix this? Maybe should to check net connection every save? If yes, how?