HomeiOS Developmentios - SwiftUI DocumentGroup + ReferenceFileDocument not saving modifications after rename in...

ios – SwiftUI DocumentGroup + ReferenceFileDocument not saving modifications after rename in iCloud Drive


I am constructing a document-based app utilizing SwiftUI’s DocumentGroup with a customized ReferenceFileDocument. Every thing works properly when paperwork are created within the “On My iPhone” listing — they save routinely, even after renaming.

Nonetheless, once I create a doc inside iCloud Drive (by default it creates in iCloud Drive as iCloud sync is enabled in capabilities), the doc:

✅ Saves correctly earlier than rename

❌ Stops saving modifications after renaming the file (By taping the filename on the high of the display screen When doc is open(inline rename UI within the navigation bar)

This challenge solely happens for iCloud Drive–primarily based paperwork. The identical rename stream works wonderful for domestically saved paperwork.

How am i able to make sure the doc continues saving correctly on this case?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments